WP_UnitTestCase missing?

I was looking at tests for wordpress and some, if not all the classes have WP_UnitTestCase but I cannot find the class, why do I care? I have downloaded The most up to date version of this from github which is the same set of tests.

Why does this matter so much? Because when ever I run one of the tests via phpunit filename.php I get the error from php unit stating that its missing WP_UnitTestCase.

Read More

So my question is:

Where is this class, why is it missing if it works for the WordPress developers?

Related posts

Leave a Reply

1 comment

  1. This class is defined in includes/testcase.php. If you checkout the entire repo, you should have it. To check out the entire repo, you should be running something along the lines of:

    svn co https://unit-tests.svn.wordpress.org/trunk wordpress-tests