Releases: Codeception/Specify
Releases · Codeception/Specify
2.0.0
What's Changed
- PHP 7.4 or higher is required.
- Support PHP 8.1
- Updated code base to PHP 7.4 by @TavoNiievez in #54 and #55
- Use Github Actions by @Naktibalda in #52
Full Changelog: 1.4.0...2.0.0
1.4.0
- Added Fluent Interface support, this allows you to add
it
's andshould
's chained to aspecify
ordescribe
. Specify.php
trait now only has the public API methods.- If an
it
orshould
only receives text now that test is marked as incomplete. shouldNot
andits
were added as aliases.
PHPUnit 9 support
Support PHPUnit 9 (#50) * Support PHPUnit 9 * Run tests on PHP 7.3 and 7.4 * Made ResultPrinter compatible with PHPUnit 9
PHPUnit 8 support
PHPUnit 7 supprt / PHPUnit 6.x drop
Due to interface change in PHPUnit 7 we can't support both PHPUnit 7x. and 6.x
This release request PHPUnit 7.x and PHP 7.1+ as well.
If you can't update keep using 1.0 version.
1.0
Specify was refactored to simplify its usage. Works with PHP7 and PHPUnit 6+ only (and Codeception, of course)
- BREAKING: PHPUnit 6 support
- BREAKING: Removed configuration section
- BREAKING: Only properties marked with
@specify
annotation are cloned in specify blocks. - BREAKING: Removed throws parameter in specify blocks
- Added
$this->describe
,$this->it
,$this->should
aliases to$this->specify
- Added
Codeception\Specify\ResultPrinter
to fix printing progress of specify blocks.
Upgrade Plan
- Update to PHP7+ PHPUnit 6+
- Add to
phpunit.xml
:printerClass="Codeception\Specify\ResultPrinter"
- If relied on property cloning, add
@specify
annotation for all properties which needs to be cloned for specify blocks - If you used
throws
parameter, consider using AssertThrows package.
0.4.6
Revert regression in 0.4.4
Revert #35