OutputTestCase - No such file

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
trossachs
Forum Newbie
Posts: 1
Joined: Mon May 18, 2009 6:05 am

OutputTestCase - No such file

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: OutputTestCase - No such file

Post by josh »

You need to add it to your include path, phpunit is including the standard testcase for you
Post Reply