Closed walterdolce closed 7 years ago
Hi @walterdolce, I think your issue is in your project autoloader, not in this current projet. The example you gave is just for functional testing this project, it's not a documentation neither a recommendation about how to implement it.
@vincentchalamon thank you for coming back to me so quickly. I raised #20 for this.
I think your issue is in your project autoloader
Hmmm. There's nothing special in my autoloader:
{
"require-dev": {
# Dependencies...
"gorghoa/scenariostate-behat-extension": "v1.0.0-rc.2"
},
"autoload": {
"psr-0": {
"": [
"webapp/php/lib",
"webapp/php/sharedlib",
"../pear",
"../php"
]
}
},
"config": {
"bin-dir": "bin"
}
}
My behat files are placed differently than normal. Not sure whether it should matter at all. I will include just to give more info:
# behat.yml
default:
autoload:
'': %paths.base%/features/behat/bootstrap
# ...
I see you are specifically requesting the annotation registry to have the ScenarioStateArgument
autoloaded. So I suspect everyone else will have to do it... #20 should fix this by registering the annotation at extension initialisation time.
The ScenarioStateArgument doesn't seem to be working by default.
It gives a:
I would expect to have it autoloaded automatically instead of adding code specifically for autoloading it.
Here's my context: