Page 1 of 1

OutputTestCase - No such file

Posted: Mon May 18, 2009 6:18 am
by trossachs
Hi all,
I'm new to php (but not to unit testing). Have some basic tests running but have a problem when I try and use PHPUnit_Extensions_OutputTestCase. I'm getting the error
PHP Fatal error: require_once(): Failed opening required '/PHPUnit/Extensions/OutputTestCase.php'

I'm running my tests from the PHPUnit-3.3.9 directory and I have the line
require_once 'PHPUnit/Extensions/OutputTestCase.php';
in my test file but it doesn't seem to locate the file, even though it's physically there.

I haven't go the phpUnit directory in my include_path yet (need to get the admin to sort it out) but I thought this should work as my other 'normal' tests are working.

Any ideas?
Cheers.

Re: OutputTestCase - No such file

Posted: Mon Jun 15, 2009 2:07 pm
by josh
You need to add it to your include path, phpunit is including the standard testcase for you