Netbeans 8.2我无法创建PHPUnit测试

时间:2017-02-03 12:54:01

标签: netbeans phpunit

系统:Ubuntu 16.04 / Netbeans 8.2 / phpunit 5.1.3

我想开始在Netbeans中使用PHPunit。

我已经下载了PHPunit并配置了Netbeans以查看phpunit和phpunit-skelgen.phar,如下图所示:

Netneans configuration for phpunit

我创建了一个简单的类来测试,使用@assert装饰器进行测试,如下所示:

simple class to test

问题是我的项目报告PHPUnit不活动...

enter image description here

这似乎可以解释为什么我找不到“创建PHPUnit测试”的文件上下文菜单选项,如图中所示,from this page.

File context-menu "Create PHPUnit tests"

我的大脑现在已被添加 - 我如何配置Netbeans以识别我想在项目中激活PHPUnit测试?

感谢。

1 个答案:

答案 0 :(得分:7)

您可能忘记将PHPUnit标记为使用enter image description here

的测试提供程序
相关问题