Using PS-98.21, on osx 10.6.4...
I'm trying to get started with PHPUnit and having some problems. I've installed it and a test class seems to recognize phpunit stuff, but when it runs it says no tests were found. I took a *very* basic example from the phpunit doc and the inspector thinks everything is fine:
class StackTest extends PHPUnit_Framework_TestCase
public function testPushAndPop()
$stack = array();
$this->assertEquals('foo', $stack[count($stack) - 1]);
I've also tried without success to get phpstorm to generate a test class for me. There I get an error "Failed to execute PHP script. Please check your PHPUnit configuration". Below is a screen shot of my php config.
My directories ONLY include my project, the help referred to adding PEAR to it, I tried that and didn't seem to make a difference.
Here is what my /usr/lib/php directory looks like in case that helps:
Archive PEAR.php SymfonyComponents doc peclcmd.php
Console PEAR5.php System.php extensions test
Log PHP Text ezc
Log.php PHPUnit XML gengraph.php
OS PhpDocumentor build modules
PEAR Structures data pearcmd.php
I know is probably something stupid, but those things are easy to fix, right?