WordPress.org

Support

Support » Plugins and Hacks » [Plugin: wp-unit] Poor documentation

[Plugin: wp-unit] Poor documentation

  • cristiroma
    Member

    @cristiroma

    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?

    http://wordpress.org/extend/plugins/wp-unit/

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

    @nunomorgadinho

    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.