Freedom251 › BDD Testing Tools
Behat

What Behat is
Behat is free, open-source software for writing executable software specifications in plain language. It is the PHP implementation of Cucumber and runs specifications written in Gherkin. Feature files can describe application behavior and be checked through browser automation, HTTP API calls, shell commands, databases, filesystems or PHP code. Behat is designed for use with any PHP framework, or without one. Installation is available through Composer or a PHAR executable, and both methods run using PHP. Its extension system can change or expand nearly any part of its functionality; available extensions cover framework integrations, browser automation, reporting and data fixtures. Behat does not provide its own assertion tool, so users can pair it with an external assertion library. It supports current PHP and third-party dependency versions, with Symfony 8 support starting in Behat 4.0. The project says each major version receives security fixes for 24 months after the next major release. The software is maintained by volunteers and provided without warranty; users can direct questions to its Gitter channel.
Who it suits
Behat suits PHP developers who want to express application behavior as Gherkin specifications and run them across different parts of a system. It can fit projects using a PHP framework or no framework.
What it does well
- Runs Gherkin specifications as executable tests.
- Feature files can cover browser and API behavior.
- Works with any PHP framework or without one.
- Composer and PHAR installation are documented.
- Extensions cover frameworks, reporting and fixtures.
What to know first
- Behat has no built-in assertion tool.
- The software is provided without warranty.
- Security fixes for each major version last 24 months after the next major release.
Limits
Behat is free software provided without warranty. It does not include its own assertion tool, and Symfony 8 support starts with Behat 4.0.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Behat | Free software; provided without warranty | Free |
As behat.org lists them, read 4 Oct 2026. The maker's own page has the final word.
Getting started
- Open the Behat website.
- Use PHP on Linux.
- Install with Composer or use the PHAR executable.
- Write specifications in Gherkin feature files.
- Use a suitable extension or external assertion library if needed.
Verdict
Behat offers a flexible, free way to turn plain-language specifications into executable checks for PHP projects. Users need to choose an external assertion library and account for the project's stated security-support window.
Questions
How much does Behat cost?
The Behat plan is free. It is free software.
Is Behat open source?
Yes. Behat is open-source software maintained by volunteers.
Which platforms does Behat support?
Behat runs locally on Linux and uses PHP.
Does Behat support Gherkin and browser testing?
Yes. It runs Gherkin specifications and can test behavior using browser automation.
Does Behat include assertions?
No. Its documentation lists external assertion libraries that can be used.
How can I install Behat?
The documented methods are Composer and a PHAR executable, both run using PHP.
Facts from Behat's own pages
- Assertions
- Behat does not include its own assertion tool, and its documentation lists external assertion libraries that can be used. · docs.behat.org, 4 Oct 2026
- Community support
- The project directs users to its Gitter channel for questions and its contribution guide for issues or feature contributions. · docs.behat.org, 4 Oct 2026
- Compatibility limit
- Behat supports current PHP and third-party dependency versions, and says Symfony 8 support starts with Behat 4.0. · docs.behat.org, 4 Oct 2026
- Extensibility
- Behat's extension system can enhance or replace nearly any part of its functionality. · docs.behat.org, 4 Oct 2026
- Extensions
- Available extensions include integrations for PHP frameworks, browser automation, test result reporting, and data fixtures; the project says it does not maintain an official extension list. · docs.behat.org, 4 Oct 2026
- Framework support
- Behat is designed to work with any PHP framework or with no framework. · docs.behat.org, 4 Oct 2026
- Installation
- The documented installation methods are Composer and a PHAR executable, both run using PHP. · docs.behat.org, 4 Oct 2026
- PHP implementation
- Behat is the PHP implementation of Cucumber and runs specifications written in Gherkin. · docs.behat.org, 4 Oct 2026
- Purpose
- Behat is an open source behavior-driven development tool for writing executable software specifications in plain language. · docs.behat.org, 4 Oct 2026
- Security support
- The project states that each major version receives security fixes for 24 months after the next major release. · docs.behat.org, 4 Oct 2026
- Testing scope
- Feature files can describe whole application behavior and can be tested using browser automation, HTTP API calls, shell commands, databases, filesystems, or PHP code. · docs.behat.org, 4 Oct 2026
- Warranty
- Behat describes itself as free software maintained by volunteers and says its license provides it without warranty. · docs.behat.org, 4 Oct 2026
Where Behat stands on Freedom251
- BDD Testing Tools#9 of 30
