Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing 获取此错误:无法识别的选项--使用PHPUnit 3.7.10和Netbeans 7.1.2进行骨架测试_Unit Testing_Netbeans 7 - Fatal编程技术网

Unit testing 获取此错误:无法识别的选项--使用PHPUnit 3.7.10和Netbeans 7.1.2进行骨架测试

Unit testing 获取此错误:无法识别的选项--使用PHPUnit 3.7.10和Netbeans 7.1.2进行骨架测试,unit-testing,netbeans-7,Unit Testing,Netbeans 7,我已经通过pear安装程序安装了PHPUnit,但是我在使用工具>创建PHPUnit测试时遇到了问题 输出误差为:PHPUnit 3.7.10,由塞巴斯蒂安·伯格曼(Sebastian Bergmann)提供。无法识别的选项--骨架测试 这是Netbeans中的单元测试选项卡: 在“常规”选项卡中尝试了不同的包含路径,但不确定如何包含类 有什么问题吗。。。?感谢验证phpunit skelgen文件是否与phpunit二进制文件存在于同一目录中(在您的安装中为C:\wamp\bin\php\

我已经通过pear安装程序安装了PHPUnit,但是我在使用工具>创建PHPUnit测试时遇到了问题

输出误差为:PHPUnit 3.7.10,由塞巴斯蒂安·伯格曼(Sebastian Bergmann)提供。无法识别的选项--骨架测试

这是Netbeans中的单元测试选项卡:

在“常规”选项卡中尝试了不同的包含路径,但不确定如何包含类


有什么问题吗。。。?感谢

验证phpunit skelgen文件是否与phpunit二进制文件存在于同一目录中(在您的安装中为C:\wamp\bin\php\php5.3.5)

如果没有,请以与安装PHPUnit相同的方式安装PHPUnit SkeletonGenerator,例如从PEAR:


C:\wamp\bin\pear.exe安装phpunit/phpunit\u SkeletonGenerator

查看链接谢谢我会尝试一下。。。