开发者

Netbeans PHPUnit Tests were not generated

开发者 https://www.devze.com 2023-04-03 10:10 出处:网络
When trying to create a test for a file with a c开发者_运维技巧lass, I get the following error:

When trying to create a test for a file with a c开发者_运维技巧lass, I get the following error:

Tests were not generated for the following files:

myclass.php

Review the log in Output windows

When looking at Output:

Restricted access

The test class file is not created but the directory tree is.

I have noticed this happens with classes that extend another class. With classes with no extend, the test file is correctly created.


Check if File / Project Properties/ Test Folder is set correctly.


Are you testing something inside Joomla? It seems the "restricted access" that Joomla says when the _JEXEC is not defined. Try to put this on top of your bootstrap file

    define('_JEXEC', 1);
0

精彩评论

暂无评论...
验证码 换一张
取 消