symfounya
symfounya

Reputation: 23

behat mink symfony2 Warning

I try to make functional tests with the bundle Behat and Mink

However, after having installed the Bundle and all, I issued the command

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

but I get this error:

PHP Warning: require_once (C: \ wamp \ www \ exoNext-local \ trunk \ app /.. / Vendor / doctrin e / lib / Doctrine / ORM / Mapping / Driver / DoctrineAnnotations.php): failed to open strea m: No such file or directory in C: \ wamp \ www \ exoNext-local \ trunk \ vendor \ doctrine- common \ lib \ Doctrine \ Common \ Annotations \ AnnotationRegistry.php on line 51

could you help me please, thank you very much

Upvotes: 0

Views: 400

Answers (3)

Francesco Casula
Francesco Casula

Reputation: 27130

Try to run these two commands first and then yours:

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

I hope it helps :-)

Upvotes: 0

Jakub Zalas
Jakub Zalas

Reputation: 36201

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

Shouldn't "Vendor" be "vendor" ? I know windows is case insensitive but require_once can face case sensitivity problems in some cases.

Upvotes: 0

sensorario
sensorario

Reputation: 21620

To init a bundle I use

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

But your error is related to a doctrine annotation?

Upvotes: 0

Related Questions