Hi all,
I’m working my way through this useful book. This is the first problem I haven’t been able to solve via web searching.
Got PHPUnit and Selenium installed and successfully ran unit tests in Chapter 3 for the demo project. But trying the trackstar unit test failed. And going back to the demo unit test, it failed also, with the same message:
amd @ /Library/WebServer/Documents/demo/protected/tests: phpunit unit/MessageTest.php
Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/lib/php/PHPUnit/Autoload.php on line 45
Fatal error: require_once(): Failed opening required ‘File/Iterator/Autoload.php’ (include_path=’.:’) in /usr/lib/php/PHPUnit/Autoload.php on line 45
Now… what changed? I did make a change in php.ini, but I swear (famous last words) that I reverted. And then rebooted.
The "missing" file is definitely at /usr/lib/php/File/Iterator/Autoload.php. That include path in the error message looks suspiciously scant. Fix? Thanks for any tips.
AD