Download the PHP package elbformat/symfony-behat-bundle without Composer
On this page you can find all versions of the php package elbformat/symfony-behat-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package symfony-behat-bundle
symfony-behat-bundle
This bundle provides reusable behat contexts for symfony applications. All steps are written in present tense, as suggested on https://automationpanda.com/2021/05/11/should-gherkin-steps-use-past-present-or-future-tense/
Features
- CommandContext to test symfony commands.
- DateContext to mock the current date.
- FormContext to test/manipulate/fill html forms.
- HtmlContext to check the DOM/plain HTTP response.
- HttpContext for simple HTTP interactions.
- JsonContext to send or check json data in request/response.
- LoggingContext to verify correct logging.
- MailerContext to check if mails were triggered.
- AbstractApiContext to help implementing custom context for external API interaction.
- AbstractDatabaseContext to help implementing custom context with database interaction.
Installation
Add to your composer requirements as dev dependency.
Activate bundle in your config/bundles.php
Use contexts in your behat.yml
as you like
Mailer
To make the Test-Mailer work, you need to set the mailer dsn in config/packages/mailer.yaml
API
To not send requests to a real api, you should configure the MockClient to be used in config/packages/framework.yaml
Examples
Examples can be found in dock/examples.md.
Updating
When updating from a previous version, see the changelog for changes.
What's next?
The next release should likely contain more tests/stability improvements.
Development
If you want to develop on the bundle you will find useful information in doc/development.md
All versions of symfony-behat-bundle with dependencies
ext-dom Version *
ext-json Version *
behat/behat Version ^3.8
friends-of-behat/symfony-extension Version ^2.2
symfony/dom-crawler Version ^5.4|^6.2
symfony/property-access Version ^5.4|^6.2