Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Specify Laravel Package

codeception/specify

Trait for BDD-style specifications in PHPUnit/Codeception. Lets you write tests with describe/it-like blocks, shared setup, and clear expectations, improving readability while staying compatible with standard PHP unit testing workflows.

View on GitHub
Deep Wiki
Context7
2.0.0

What's Changed

Full Changelog: https://github.com/Codeception/Specify/compare/1.4.0...2.0.0

1.4.0
  • Added Fluent Interface support, this allows you to add it's and should's chained to a specify or describe.
  • Specify.php trait now only has the public API methods.
  • If an it or should only receives text now that test is marked as incomplete.
  • shouldNot and its were added as aliases.
1.3.0
1.2.0
  • Extended range of supported PHPUnit versions to include PHPUnit 8
  • Fixed signature of result printer `writeProcess method #45 by @purwandi
1.1

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](https://github.com/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](https://github.com/specify) annotation for all properties which needs to be cloned for specify blocks
  4. If you used throws parameter, consider using AssertThrows package.
0.4.6
  • Added ability isolate and verify mock objects within a specification (#34, #35, #37)

Thanks @ischenko

0.4.3

Shows example index on failure

0.4.2

Testing exception messages

0.4.1

Implemented cloneOnly property to whitelist properties to be restored after specify blocks

0.4.0
0.1.0
0.3.6
0.3.5
0.3.4

Added DeepCopy library to store/restore objects between specs

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope