---
title: "Comment by Slobodan Alavanja on \"Brain Monkey Tutorial: Simplified Unit Testing for WordPress\" | Hashnode"
description: "Hey. I tried your tutorial but I got a lot of PHP errors and the tests don't run. I can't send you a link to the output since it's my first comment. The first e"
url: "https://hashnode.com/posts/brain-monkey-tutorial-simplified-unit-testing-for-wordpress/675de88b141c7cba6c429f7d/comment/679760c41e0316e474f575cd"
---

[Discussion](https://hashnode.com/posts/brain-monkey-tutorial-simplified-unit-testing-for-wordpress/675de88b141c7cba6c429f7d)

Comment [Brain Monkey Tutorial: Simplified Unit Testing for WordPress](https://hashnode.com/posts/brain-monkey-tutorial-simplified-unit-testing-for-wordpress/675de88b141c7cba6c429f7d)

[Slobodan Alavanja](https://hashnode.com/@slobich)

[Jan 27, 2025](https://hashnode.com/posts/brain-monkey-tutorial-simplified-unit-testing-for-wordpress/675de88b141c7cba6c429f7d/comment/679760c41e0316e474f575cd)

Hey. I tried your tutorial but I got a lot of PHP errors and the tests don't run. I can't send you a link to the output since it's my first comment. The first error is:

"1) MyPluginTest::test\_my\_plugin\_add\_greeting Error: Call to undefined function my\_plugin\_add\_greeting()"

All the rest are the same as the plugin file is not loading. Also there is an error about Brain Monkey: Error: Call to undefined method Mockery\\Expectation::withConsecutive().

Is there something I'm missing? Hope you can help.
