Issues with installing PHPUnit
Posted
by
user1045696
on Stack Overflow
See other posts from Stack Overflow
or by user1045696
Published on 2012-03-31T02:52:43Z
Indexed on
2012/03/31
11:29 UTC
Read the original article
Hit count: 155
So I've installed PHP Unit via PEAR (all the files are there, I've checked). However, when I try to run a test I get:
Warning: require_once(PHPUnit/Framework.php) [function.require-once]: failed to open stream: No such file or directory in C:\WAMP\www\ExampleTests\arraytest.php on line 2
I'm guessing this has something to do with my PHPUnit installation not updating the include_path properly, but I'm not too sure what to update it to?
I'm on Windows (7), using WAMP.
Cheers!
EDIT: The bottom of PHP.ini contains:
;***** Added by go-pear
include_path=".;C:\WAMP\bin\php\php5.3.10\pear"
;*****
I also get the error:
Fatal error: require_once() [function.require]: Failed opening required 'PHPUnit/Framework.php' (include_path='.;C:\php\pear')
However, after looking in PHP.ini, there's no include path that points to C:\php\pear?
© Stack Overflow or respective owner