behat/behat
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
behat/gherkin | v4.9.0 | 73.76 kB | MIT | prod | |
behat/transliterator | v1.5.0 | 143.18 kB | Artistic-1.0 | prod | 1 |
psr/container | 2.0.2 | 3.55 kB | MIT | prod dev | |
symfony/config | v6.4.7 | - | MIT | prod dev | |
symfony/console | v6.4.7 | - | MIT | prod dev | |
symfony/dependency-injection | v6.4.7 | - | MIT | prod dev | |
symfony/event-dispatcher | v6.4.7 | - | MIT | prod dev | |
symfony/translation | v6.4.7 | - | MIT | prod | |
symfony/yaml | v6.4.7 | - | MIT | prod dev |
Behat is a scenario-oriented BDD (Behavior-Driven Development) framework for PHP. This robust tool helps developers conduct business expectation testing in a comprehensive and structured way. Behat has been designed to align the World Wide Web's work process with business interests, making it an invaluable asset for teams pushing for innovative forms of web interaction and visibility.
Using Behat is easy and straightforward. The primary way to install Behat is through Composer, a popular application-level package manager for PHP. You can run the command composer require --dev behat/behat
in your terminal to install Behat. Once installed, you'll be able to run Behat via the command vendor/bin/behat
.
For those who prefer the development version, clone the Behat repository and install dependencies via Composer. The command composer install
will handle this for you. Once done, you can run the development version of Behat using the command bin/behat
.
Here's a quick overview of the commands:
Install Behat via Composer
$> composer require --dev behat/behat
To run Behat
$> vendor/bin/behat
Install dependencies for development version
$> composer install
To run the development version of Behat
$> bin/behat
You can find a wealth of information on Behat in its official docs. The main website is at http://behat.org and the documentation is available at http://docs.behat.org/en/latest/. These resources offer a deep-dive into the usage, capabilities, and potential of Behat for PHP testing. From getting started guides to detailed tutorials and code usage examples, the Behat documents serve as a comprehensive guide for programmers seeking to enhance their PHP testing capabilities.