richardmiller-zz / BehatSpec

Extensions to integrate Behat and PhpSpec
MIT License
51 stars 6 forks source link

behat extension file or class could not be located #6

Closed Lionel-D closed 8 years ago

Lionel-D commented 8 years ago

Hello!

I'm trying to configure BehatSpec on my project but Behat can't seem to find it... I've checked the requirements, and added the extension to beat.yml but I keep getting the same error

[Behat\Testwork\ServiceContainer\Exception\ExtensionInitializationException]
  `0` extension file or class could not be located.

I'm a newbie with behat & phpspec so I'm obviously missing something but I will really appreciate some help! :-)

You can check project repo Lionel-Daelemans/advent_of_code_2015 to see if you spot the error.

Thanks in advance!

richardmiller-zz commented 8 years ago

Hi, it looks like you don't make the extensions an array in the config file when they are nested under the profile. Oddly it appears to work either way when not nested under a profile. I've opened a PR to your repo with the change here - https://github.com/Lionel-Daelemans/advent_of_code_2015/pull/6 and I'll update our readme file as well.

Lionel-D commented 8 years ago

thanks for the quick update! extension is working fine now!