bebat / verify
BDD assertion library for PHPUnit
Requires
- php: ^7.2 || ^8.0
- ext-ctype: *
- ext-mbstring: *
- bebat/filesystem-assertions: ^1.1
- phpunit/phpunit: ^8.0 || ^9.0 || ^10.1
Requires (Dev)
- captainhook/captainhook: ~5.14.4
- captainhook/plugin-composer: ~5.3.3
- codeception/assert-throws: ~1.3.0
- ergebnis/composer-normalize: ~2.15.0
- friendsofphp/php-cs-fixer: ~3.4.0 || ~3.22.0
- maglnet/composer-require-checker: ^2.1.0 || ~4.4.0
- mockery/mockery: ~1.3.6 || ~1.6.5
- nette/neon: ~3.3.3
- phpstan/extension-installer: ~1.1.0 || ~1.3.1
- phpstan/phpstan: ~1.10.27
- phpstan/phpstan-deprecation-rules: ~1.1.4
- phpstan/phpstan-mockery: ~1.1.1
- phpstan/phpstan-phpunit: ~1.3.13
- phpstan/phpstan-strict-rules: ~1.5.1
Suggests
- codeception/specify: Highly readable test code blocks for PHPUnit and Codeception
Replaces
This package is auto-updated.
Last update: 2024-12-21 22:01:24 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.
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.