phpunit在netbeans中的使用问题
PHP Version 5.2.9-1,安装路径为D:\PHP\Dev\bin
phpunit版本为3.5.0,安装路径为D:\PHP\Dev\bin\PEAR
我将php.ini文件的include_path设置为 .;D:\PHP\Dev\bin\PEAR
结果的命令行的情况下
Warning:require_once<PHP/CodeCoverage/Filere.php>:fail to open stream:No such file or directory in D:\PHP\Dev\bin\phpunit on line 38
Fatal error:require_once ():Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path=.;C:\php5\pear') in D:\PHP\Dev\bin\phpunit on line 38
上面的include_path为什么是默认的,但phpinfo()在网页上显示的include_path .;D:\PHP\Dev\bin\PEAR
因为这个问题,我在google上搜了很久,未能很好解答,望各位大神指指路。
如果我将phpunit中的三个文件夹FILE PHP PHPUNIT拷贝到BIN目录下,在命令行的情况下可以正常运行
D:\PHP\Dev\bin>phpunit
PHPUnit 3.5.0 by Sebastian Bergann.
如果我在netbeans6.8中右键菜单-》工具一个-》创建PHPUnit测试
会出现
Warning: require_once(File/Iterator/Factory.php): failed to open stream: No such file or directory in D:\PHP\Dev\bin\PHP\CodeCoverage\Filter.php on line 46
Fatal error: require_once(): Failed opening required 'File/Iterator/Factory.php' (include_path='.;C:\php5\pear') in D:\PHP\Dev\bin\PHP\CodeCoverage\Filter.php on line 46
希望谁有在NETbean中有PHPUNIT使用经验的人指点一下。