This package is abandoned and no longer maintained. No replacement package was suggested.

Skip your PhpSpec examples through annotations

v1.0.0 2021-11-06 15:33 UTC

This package is auto-updated.

Last update: 2022-01-18 03:06:07 UTC


This PhpSpec extension allows to skip example through user-friendly annotations. Run Tests


Once you have installed PhpSpec (following the documentation on the official website), you can install this extension using the following Composer command:

composer require babdev/phpspec-skip-example-extension


You can now activate the extension by creating a phpspec.yml file at the root of your project:

    Akeneo\SkipExampleExtension: ~



The @require annotation can be used on the spec class or any example method. If a requirement is missing from the spec, all examples will be skipped. If a requirement is missing from an example, only that example will be skipped.

 * @require Vendor\Builder\ToolInterface
class BridgeBuilderSpec extends ObjectBehavior
    // Will be skipped if the Vendor\Builder\ToolInterface interface does not exist
    function it_builds_a_bridge()

     * @require Vendor\Builder\ConcreteTruck
    // Will be skipped if the Vendor\Builder\ToolInterface interface or Vendor\Builder\ConcreteTruck class does not exist
    function it_builds_the_road()



Feel free to contribute to this extension if you find some interesting ways to improve it!