Support » Plugin: wp-unit » [Plugin: wp-unit] Poor documentation

  • When I wrote a test

    class MyTest extends PHPUnit_Framework_TestCase {

    I get

    Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/test/workspace/myproject/www/wp-content/plugins/myth/tests/tests.php on line 33

    Is there any documentation on how to actually implement these tests? Do I need to use require_once?
    Is there a problem with plugins loaded in wrong order?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Nuno Morgadinho


    Every unit test must be included in the ‘testcase’ folder you will find under the wp-unit plugin directory. Also you’ll find a couple of examples there to help you get started.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: wp-unit] Poor documentation’ is closed to new replies.