Netbeans 8.0.1 PHPUnity生成器 [英] Netbeans 8.0.1 PHPUnity Generator
问题描述
我尝试用netbeans安装phpunit并正确完成了安装!但是,当尝试生成phpunit类时,发生以下错误:未注册引用的参数'--ansi'."并且没有生成文件.
I tryed install phpunit with netbeans and the installation done correctly! But, when a try generate the phpunit class, the follow error occurred: "The referenced parameter '--ansi' is not registered." and the file was not generated.
有人对此有任何想法吗?
Anyone have any idea about this?
推荐答案
对我来说,情况也是一样.似乎我们正在使用旧的phpunit-skelgen 1.2.1版本.显然,NetBeans 8.0.1假定您使用的是最新版本的phpunit-skelgen,即2.0.1.
It happened the same to me. It seems that we were using the old phpunit-skelgen 1.2.1 version. Apparently, NetBeans 8.0.1 assumes you are using the newest version of phpunit-skelgen, that is 2.0.1.
因此,您仅需更新phpunit-skelgen版本,例如使用以下版本: https: //phar.phpunit.de/phpunit-skelgen.phar
So, you only have to update the phpunit-skelgen version, for example using this: https://phar.phpunit.de/phpunit-skelgen.phar
我将该文件复制到了以前的phpunit-skelgen.bat文件所在的位置:C:\ xampp \ php.当然,这可能会因您的操作系统或项目结构而异.
I copied that file to where I had my previous phpunit-skelgen.bat files: C:\xampp\php. Of course, this may vary according to your OS or your project structure.
之后,将NetBeans配置为使用下载的文件而不是旧文件. Netbeans菜单中工具">选项"周围的内容.
After that, configure NetBeans to use the downloaded file instead of the old file. Something around Tools > Options in Netbeans menu.
希望这会有所帮助!
这篇关于Netbeans 8.0.1 PHPUnity生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!