PHPUnit with Symfony致命错误:Class 'DoctrineBundleDoctrine


PHPUnit with Symfony Fatal error: Class 'DoctrineBundleDoctrineBundleDoctrineBundle' not found

我想测试我的应用程序与Symfony。我写了一个测试,当我启动它时,我得到以下错误:

致命错误:Class 'Doctrine'Bundle'DoctrineBundle'DoctrineBundle'/…/app/AppKernel.php第17行

我有同样的错误与Symfony的MonologBundle, AsseticBundleSwiftmailerBundle:然后我手动添加这些捆绑到我的应用程序,所以也许我已经修复了这些错误,但与学说我还没有找到任何解决方案。

看起来你可能没有安装Doctrine包。尝试到项目的根目录,在那里编写器。Phar通过控制台定位,并尝试像这样运行它:

php composer.phar

它将安装Symfony2的所有依赖项,希望一切都能正常工作:)

相关文章:
  • 没有找到相关文章