Download the PHP package svetel/behatch-contexts without Composer
On this page you can find all versions of the php package svetel/behatch-contexts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package behatch-contexts
Behatch contexts
Behatch contexts provide most common Behat tests.
This project forked from Behatch/contexts
- Added support php 8.1
- Fixed deprecations
- Fixed tests for all tags, except:
- @user
- @skip
- @javascript
Welcome to contribute
Installation
This extension requires:
- Behat 3+
- Mink
- Mink extension
Project dependency
- Install Composer
-
Require the package with Composer:
- Activate extension by specifying its class in your
behat.yml:
Project bootstrapping
- Download the Behatch skeleton with composer:
Browser, json, table and rest step need a mink configuration, see Mink extension for more information.
Usage
In behat.yml, enable desired contexts:
Examples
This project is self-tested, you can explore the features directory to find some examples.
Configuration
browser- more browser related steps (like mink)timeout- default timeout
debug- helper steps for debuggingscreenshotDir- the directory where store screenshots
system- shell related stepsroot- the root directory of the filesystem
json- JSON related stepsevaluationMode- javascript "foo.bar" or php "foo->bar"
table- play with HTML the tablesrest- send GET, POST, ... requests and test the HTTP headersxml- XML related steps
Configuration Example
For example, if you want to change default directory to screenshots - you can do it this way:
All versions of behatch-contexts with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
behat/behat Version ^3.12
friends-of-behat/mink-extension Version ^2.7
justinrainbow/json-schema Version ^5.2
symfony/property-access Version ^5.0|^6.0
symfony/http-foundation Version ^5.0|^6.0
symfony/dom-crawler Version ^5.0|^6.0
behat/behat Version ^3.12
friends-of-behat/mink-extension Version ^2.7
justinrainbow/json-schema Version ^5.2
symfony/property-access Version ^5.0|^6.0
symfony/http-foundation Version ^5.0|^6.0
symfony/dom-crawler Version ^5.0|^6.0
The package svetel/behatch-contexts contains the following files
Loading the files please wait ...