Writing Test Case

Test case is a PHP class containing test methods. See phpunit.de/manual for more information about PHPUnit tests.

By default, Test Explorer looks for script files suffixed with Test.php, containing a class suffixed with Test and extending base test case class. Any public function within the test class prefixed with test (lowercased) or annotated with PHPDoc keyword @test is listed in Test Explorer window.

PHPUnit Test Case

Note: script files has to be saved to reflect changes in Test Explorer window.