BDD Assertions for PHPUnit and Codeception.
This is small wrapper for PHPUnit assertions that is aimed to make tests more readable and easier to maintain. With BDD assertions influenced by Chai, Jasmine, and RSpec your assertions will look a bit more like natural language.
Most of the original work was done by @DavertMik and @Ragazzo in the Codeception/Verify repo. This version provides an alternate API and feature set, while sticking to the original BDD philosophy.
To install the current version of BeBat/Verify from Packagist, run the following in your project directory:
composer require --dev bebat/verify
BeBat/Verify will be added to your composer.json
under require-dev
and installed in your vendor
directory.
BeBat/Verify is built on top of PHPUnit's own assertions. It is compatible with any version of PHPUnit 8, 9, or 10.1 and above. It should also be compatible with the current version of Codeception.
In addition, BeBat/Verify is compatible with both PHP 7.2+ and 8+.
Full documentation for BeBat/Verify can be found on Read the Docs.