BDD style code blocks for PHPUnit / Codeception
Full Changelog: https://github.com/Codeception/Specify/compare/1.4.0...2.0.0
it
's and should
's chained to a specify
or describe
.Specify.php
trait now only has the public API methods.it
or should
only receives text now that test is marked as incomplete.shouldNot
and its
were added as aliases.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.
Specify was refactored to simplify its usage. Works with PHP7 and PHPUnit 6+ only (and Codeception, of course)
@specify
annotation are cloned in specify blocks.$this->describe
, $this->it
, $this->should
aliases to $this->specify
Codeception\Specify\ResultPrinter
to fix printing progress of specify blocks.phpunit.xml
: printerClass="Codeception\Specify\ResultPrinter"
@specify
annotation for all properties which needs to be cloned for specify blocksthrows
parameter, consider using AssertThrows package.Thanks @ischenko
Shows example index on failure