llu*_*din 9 php unit-testing phalcon
我正在运行文档中的示例:http://docs.phalconphp.com/en/latest/reference/unit-testing.html#sample-unit-test
我想从Phalcon\Test\UnitTestCase创建一个抽象单元测试,如文档中所示.但是,当我运行我的测试时,我变成:
PHP Fatal error: Class 'Phalcon\Test\UnitTestCase' not found
Run Code Online (Sandbox Code Playgroud)
我遵循了确切的文档步骤.有人有同样的问题并解决了吗?
twi*_*tra 13
这个类是孵化器的一部分:https://github.com/phalcon/incubator
$loader = new Phalcon\Loader();
$loader->registerNamespaces(array(
'Phalcon' => '/path/to/incubator/Library/Phalcon/'
));
$loader->register();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4356 次 |
| 最近记录: |