2017 © Pedro PelĂĄez
 

library phpspec-skip-example-extension

Skip your PhpSpec examples through annotations

image

akeneo/phpspec-skip-example-extension

Skip your PhpSpec examples through annotations

  • Thursday, August 3, 2017
  • by Akeneo
  • Repository
  • 22 Watchers
  • 22 Stars
  • 867,700 Installations
  • PHP
  • 18 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 12 Versions
  • 1 % Grown

The README.md

PhpSpec Skip Example Extension

This PhpSpec extension allows to skip example through user-friendly annotations. Build Status, (*1)

Installation

Once you have installed PhpSpec (following the documentation on the official website), add the extension requirement to your composer.json:, (*2)

Using phpspec 4.x,, (*3)

{
    "require": {
        "akeneo/phpspec-skip-example-extension": "^3.0"
    }
}

Using phpspec 5.x,, (*4)

{
    "require": {
        "akeneo/phpspec-skip-example-extension": "^4.0"
    }
}

And run composer update:, (*5)

$ php composer.phar update akeneo/phpspec-skip-example-extension

Configuration

You can now activate the extension by creating a phpspec.yml file at the root of your project:, (*6)

``` yaml extensions: Akeneo\SkipExampleExtension: ~, (*7)


## Usage ### @require <class or interface> Skips all the spec example if the class or interface is not available ```php /** * @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() { } //... }

Contributions

Feel free to contribute to this extension if you find some interesting ways to improve it!, (*8)

The Versions

03/08 2017

dev-master

9999999-dev

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner
by Nicolas Dupont

03/08 2017

v3.0.0

3.0.0.0

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner
by Nicolas Dupont

10/07 2017

v3.0.0-alpha1

3.0.0.0-alpha1

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner
by Nicolas Dupont

21/07 2016

v2.0.0

2.0.0.0

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner
by Nicolas Dupont

21/07 2016

2.0.x-dev

2.0.9999999.9999999-dev

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner
by Nicolas Dupont

13/09 2015

1.2.x-dev

1.2.9999999.9999999-dev

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner

13/09 2015

v1.2.0

1.2.0.0

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner

02/02 2015

1.1.x-dev

1.1.9999999.9999999-dev

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner

02/02 2015

v1.1.0

1.1.0.0

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner

18/09 2014

1.0.x-dev

1.0.9999999.9999999-dev

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner

18/09 2014

v1.0.1

1.0.1.0

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner

14/03 2014

1.0.0

1.0.0.0

Skip your PhpSpec examples through annotations

  Sources   Download

MIT

The Requires

 

by Gildas Quéméner