graham-campbell/phpspec-skip-example-extension
PhpSpec extension that lets you skip spec examples via simple annotations. Add @require ClassOrInterface to skip all examples in a spec when a dependency isn’t available. Install with Composer and enable in phpspec.yml.
This Phpspec extension allows to skip example through user-friendly annotations.
$ composer require "graham-campbell/phpspec-skip-example-extension:^5.1"
You can now activate the extension by creating a phpspec.yml file at the root of your project:
extensions:
Akeneo\SkipExampleExtension: ~
Skips all the spec example if the class or interface is not available
/**
* @require Vendor\Builder\ToolInterface
*/
class BridgeBuilderSpec extends ObjectBehavior
{
// Will be skipped if the Vendor\Builder\ToolInterface interface does not exist
function it_builds_a_brige()
{
}
// Will be skipped if the Vendor\Builder\ToolInterface interface does not exist
function it_builds_the_road()
{
}
//...
}
Feel free to contribute to this extension if you find some interesting ways to improve it!
How can I help you explore Laravel packages today?