Download the PHP package fortress/contexts without Composer
On this page you can find all versions of the php package fortress/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 contexts
Behatch contexts
Behat contexts provide most common Behat tests.
Installation
This extension requires:
- Mink
- Mink extension
Project dependency
- Install Composer
-
Require the package with Composer:
- Activate extension by specifying its class in your
behat.yml
:
Project bootstraping
- 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:
Translation
All versions of contexts with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-dom Version *
ext-libxml Version *
ext-simplexml Version *
behat/behat Version ^3.8
friends-of-behat/mink-extension Version ^2.5
justinrainbow/json-schema Version ^5.2
symfony/dom-crawler Version ^4.4|^5.4|^6.0
symfony/http-foundation Version ^5.4|^6.0
symfony/property-access Version ^5.4|^6.0
ext-dom Version *
ext-libxml Version *
ext-simplexml Version *
behat/behat Version ^3.8
friends-of-behat/mink-extension Version ^2.5
justinrainbow/json-schema Version ^5.2
symfony/dom-crawler Version ^4.4|^5.4|^6.0
symfony/http-foundation Version ^5.4|^6.0
symfony/property-access Version ^5.4|^6.0
The package fortress/contexts contains the following files
Loading the files please wait ....