behat mink symfony2警告

时间:2012-06-21 11:31:13

标签: php symfony behat mink

我尝试使用Behat和Mink包进行功能测试

但是,在安装了Bundle之后,我发出了命令

php app / console test-e = Behat - init @ AcmeDemoBundle

但是我收到了这个错误:

  

PHP警告:require_once(C:\ wamp \ www \ exoNext-local \ trunk \   app / .. / Vendor / doctrin e / lib / Doctrine / ORM / Mapping / Driver   / DoctrineAnnotations.php):无法打开strea m:没有这样的文件或   C:\ wamp \ www \ exoNext-local \ trunk \ vendor \中的目录   doctrine-common \ lib \ Doctrine \ Common \ Annotations \   第51行的AnnotationRegistry.php

你能帮助我吗,非常感谢你

3 个答案:

答案 0 :(得分:0)

要初始化一个包我使用

$ php app/console --env=test behat --init @AcmeDemoBundle

但你的错误与教条注释有关吗?

答案 1 :(得分:0)

C: \ wamp \ www \ exoNext-local \ trunk \ app /.. / Vendor / doctrin e / lib / Doctrine / ORM / Mapping / Driver / DoctrineAnnotations.php

“供应商”不应该是“供应商”吗?我知道windows不区分大小写但在某些情况下require_once可能会遇到区分大小写的问题。

答案 2 :(得分:0)

首先尝试运行这两个命令然后再运行:

composer dump-autoload
composer run-script post-update-cmd

我希望它有所帮助: - )

相关问题