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.