BDD assertion library for PHPUnit
- dev-master / 3.1.x-dev
This package is auto-updated.
Last update: 2023-01-10 04:51:31 UTC
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.
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
require-dev and installed in your
BeBat/Verify is built on top of PHPUnit's own assertions. It is compatible with any version of PHPUnit 8 or 9 and has preliminary support for version 10. Some assertions have been removed from later versions of PHPUnit, and others added. Those assertions are noted in documentation below. When using Verify you should explicitly declare what version of PHPUnit your project depends on so that there are no surprise compatibility issues.
In addition, Verify is compatible with both PHP 7.2+ and 8+.
Full documentation for BeBat/Verify can be found on Read the Docs.