bebat/verify

BDD assertion library for PHPUnit

3.2.0 2023-08-18 19:28 UTC

README

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.

Latest Stable Version Required PHP Version Required PHPUnit Version License Acceptance Test Status Code Coverage

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.

Installation

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.

Compatibility

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+.

Documentation

Full documentation for BeBat/Verify can be found on Read the Docs.