1

我有以下代码:

include 'simpletest/autorun.php';
include 'config_test.case.php'; // <-- problem

但它不起作用。我得到:

Bad TestSuite [index.php] with error [No runnable test cases in [index.php]]

但是,如果我直接放置 Config 类代码(没有“包含”),它就可以工作。我能做些什么?谢谢=)

4

1 回答 1

2

确保您有正确的测试用例路径。

我还使用 PHP autoLoader() 函数自动神奇地解析我自己的类路径,因此它们不需要包含在路径中。

于 2010-11-26T06:19:23.850 回答