-
Notifications
You must be signed in to change notification settings - Fork 201
Symfony2 extension compatibility #119
Comments
Scrutinizer would be probably happy too if the rest context is rewritten: https://scrutinizer-ci.com/g/Behatch/contexts/issues/master/files/src/Context/RestContext.php?selectedLabels[0]=9&orderField=path&order=asc |
I just push a new branch browser-kit fixed this issue. Feedback welcome 😃 |
@sanpii I've just pulled the browser-kit branch and run the tests and I'm getting the same error.
|
Any thoughts on this? I am using it along with a https://github.com/laracasts/Behat-Laravel-Extension could there be a conflict? Perhaps I'm not configuring be behatch properly? default:
extensions:
Laracasts\Behat: ~
Sanpi\Behatch\Extension: ~
Behat\MinkExtension:
show_cmd: "/Applications/Safari.app/Contents/MacOS/Safari %s"
default_session: laravel
laravel: ~
suites:
default:
contexts:
- FeatureContext
- Behat\MinkExtension\Context\MinkContext
- behatch:json
- behatch:rest |
Has anyone been able to set headers with the REST context here? I could really use it, I've tried to have a look myself but I can't figure out how to fix it myself. |
Like @koorb, we are not able to set headers with the I tried the browser-kit branch too and I have this issue: PHP Fatal error: Call to undefined method Symfony\Bundle\FrameworkBundle\Client::setHeader() in /home/fsevestre/workspace/broadcast-api/broadcast-api/vendor/behatch/contexts/src/HttpCall/Request/Goutte.php on line 64 Symfony 2.7 My default:
calls:
error_reporting: 16383 # E_ALL & ~E_USER_DREPRECATED
suites:
default:
type: symfony_bundle
bundle: 'AppBundle'
paths: [ %paths.base%/src/AppBundle/Tests/Features ]
contexts:
- AppBundle\Tests\Features\Context\FeatureContext: { doctrine: "@doctrine" }
- AppBundle\Tests\Features\Context\JsonContext
- AppBundle\Tests\Features\Context\SecurityContext: { container: "@service_container" }
- Behat\MinkExtension\Context\MinkContext
- Knp\FriendlyContexts\Context\AliceContext
- Sanpi\Behatch\Context\RestContext
extensions:
Behat\Symfony2Extension:
kernel:
env: "test"
debug: "true"
Behat\MinkExtension:
base_url: "http://broadcast-api.dev"
sessions:
default:
symfony2: ~
Sanpi\Behatch\Extension: ~
Knp\FriendlyContexts\Extension:
alice:
fixtures:
...
dependencies: ~ |
@koorb @fsevestre The |
👍 Thanks @teohhanhui, I tried your PR and the |
Ok, travis back to green, now we can work on the big issue with Behat/Symfony2Extension (#55, #98, #101, #110 and #118).
All issues is in the rest context, this confirms @stof’s comment:
Any idea?
The text was updated successfully, but these errors were encountered: