根据说明,他创建了一个引导程序phalcon-project并将其添加到模块中
我运行代码codecept run functional -d
在功能测试开始时出现错误:
PHP致命错误:无法声明类phpMorphy_Exception,因为该名称已在第35行的/home/hyber/test/backend/library/library/Service/phpmorphy/src/common.php中使用
functional.suite.yml:
actor: FunctionalTester
modules:
enabled:
- Phalcon:
bootstrap: 'config/bootstrap.php'
cleanup: true
savepoints: true
- Asserts
# add a framework module here
- \Helper\Functional
config/bootstrap.php:
error_reporting(E_ALL);
try {
$config = include __DIR__ . "/config.php";
include __DIR__ . "/loader.php";
$di = new \Phalcon\DI\FactoryDefault();
include __DIR__ . "/services.php";
return new \Phalcon\Mvc\Application($di);
} catch (\Phalcon\Exception $e) {
echo $e->getMessage();
} catch (PDOException $e){
echo $e->getMessage();
}
请帮助我!
答案 0 :(得分:0)
phpMorphy_Exception可能在测试自举和框架中都被声明两次。