We just receive emails about failed opening required phpunit framework php error. The error may appear when try to run phpunit.bat.
You will see something similar with this:
Warning: require_once(PHPUnit/Util/Filter.php): failed to open stream: No such f
ile or directory in C:\wamp\php\phpunit on line 44
Fatal error: require_once(): Failed opening required 'PHPUnit/Util/Filter.php' (
include_path='.;C:\php5\pear') in C:\wamp\php\phpunit on line 44
The solution to this error:
1. Rename the phpunit file to something like phpunit1.
2. Edit phpunit.bat to reflect the previous change.
3. Copy the PHPUnit folder under the root php folder (ie c:\php)
This failed opening required phpunit framework php error may show up when you try to install Zend Framework package on Mac OS X:
Warning: require_once(PHPUnit/Framework.php) [function.require-once]: failed to open stream: No such file or directory in /Users/StudioMac01/workspace/zend/tests/TestHelper.php on line 30
Fatal error: require_once() [function.require]: Failed opening required 'PHPUnit/Framework.php' (include_path='/Users/StudioMac01/workspace/zend/library') in /Users/StudioMac01/workspace/zend/tests/TestHelper.php on line 30
Solution for this problem:
1 Download PHPUnit and install because it isn’t included in the Zend Framework package.
2. Clean the php.ini and restarted.