Skip to content

1.0

Compare
Choose a tag to compare
@DavertMik DavertMik released this 20 Nov 23:49
· 23 commits to master since this release

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

  1. Update to PHP7+ PHPUnit 6+
  2. Add to phpunit.xml: printerClass="Codeception\Specify\ResultPrinter"
  3. If relied on property cloning, add @specify annotation for all properties which needs to be cloned for specify blocks
  4. If you used throws parameter, consider using AssertThrows package.