JKirk (3) [Avatar] Offline
#1
A little late to the party but better late than never!! I am on page 57 of the book.
I am struggling with getting PHPUnit to function so I need expert help.
I am using Wamp Server on a Windows 7 Professional SP1 AMD Machine using Apache 2.4.4, MySQL 5.6.12, PHP 5.4.16, PHPUnit 3.7.27, Pear 1.9.4
I have successful installed ZF1 1.11 and run "Hello World".
I have enclosed the error message as well as my path parameters as it relates to this error.
In advance thank you for your help and I am enjoying the book.
John K

I have run the command line on page 57 with this same error but I have simplified my command line to "phpunit --version"

PHP.ini includes

;***** Added by go-pear
include_path=".;C:wampinphpphp5.4.16pear"
;*****

;***** Added for PHPUnit
include_path=".;C:wampinphpphp5.4.16pearPHPUnit"
;*****

c;wampinphpphp5.4.16pearPHPUnitAutoload.php script

line 64 require_once 'File/Iterator/Autoload.php'; script exists in phpphp5.4.16pearFile directory
line 65 require_once 'PHP/CodeCoverage/Autoload.php';
script exists in phpphp5.4.16pearPHP directory
line 66 require_once 'PHP/Timer/Autoload.php';script exists in phpphp5.4.16pearPHP directory
line 67 require_once 'PHPUnit/Framework/MockObject/Autoload.php';
script exists in phpphp5.4.16pearPHPUnit directory
line 68 require_once 'Text/Template/Autoload.php';script exists in phpphp5.4.16pearText directory


System Path

Path=.;CsmilierogramDataComposerin;c:wampinphpphp5.4.16;c:wampinapacheapache2.4.4in;c:UsersJohnF1in;C:UsersJohnFLibrary;C:wampinphpphp5.4.16pear;C:wampinphpphp5.4.16pearPEAR


THE ERROR

Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:wampinphpphp5.4.16pearPHPUnitAutoload.php on line 64

Call Stack:
0.0000 125584 1. {main}() C:wampinphpphp5.4.16phpunit:0
0.0000 157160 2. require('C:wampinphpphp5.4.16pearPHPUnitAutoload.php') C:wampinphpphp5.4.16phpunit:43


Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;C:wampinphpphp5.4.16pearPHPUnit') in C:wampinphpphp5.4.16pearPHPUnitAutoload.php on line 64

Call Stack:
0.0000 125584 1. {main}() C:wampinphpphp5.4.16phpunit:0
0.0000 157160 2. require('C:wampinphpphp5.4.16pearPHPUnitAutoload.php') C:wampinphpphp5.4.16phpunit:43