Symfony 3.4.3不适用于Codeception

时间:2018-01-24 11:34:39

标签: php symfony codeception

我想在我的symfony 3.4.3项目中添加codeception(^ 2.3)。 我按照“入门”指南中的步骤操作,但是一旦我尝试运行codecept run,我就会收到以下错误消息:

==== Redirecting to Composer-installed version in vendor/codeception ====

Codeception PHP Testing Framework v2.3.7
Powered by PHPUnit 6.4.4 by Sebastian Bergmann and contributors.
PHP Fatal error:  Uncaught Error: Call to undefined method Symfony\Component\DependencyInjection\ContainerBuilder::isCompiled() in ~/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:981
Stack trace:
#0 ~/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(132): Symfony\Component\DependencyInjection\ContainerBuilder->setDefinition('service_contain...', Object(Symfony\Component\DependencyInjection\Definition))
#1 ~/project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(807): Symfony\Component\DependencyInjection\ContainerBuilder->__construct()
#2 ~/project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(759): Symfony\Component\HttpKernel\Kernel->getContainerBuilder()
#3 ~/project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Ker in ~/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 981

Fatal error: Uncaught Error: Call to undefined method Symfony\Component\DependencyInjection\ContainerBuilder::isCompiled() in ~/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:981
Stack trace:
#0 ~/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(132): Symfony\Component\DependencyInjection\ContainerBuilder->setDefinition('service_contain...', Object(Symfony\Component\DependencyInjection\Definition))
#1 ~/project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(807): Symfony\Component\DependencyInjection\ContainerBuilder->__construct()
#2 ~/project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(759): Symfony\Component\HttpKernel\Kernel->getContainerBuilder()
#3 ~/project/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Ker in ~/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 981

我已经尝试清除所有环境的缓存。还有什么我可以尝试的吗?

0 个答案:

没有答案