phpspec/phpspec — Issue #45: Feature request: Support for shared examples
Author: Pickachu
Created: 2011-12-21 18:53:42+00:00
State: open

Would be really great to have shared examples support.

```php
class SharedExamplesForAllEditions {
function itShouldBehaveLikeAllEditions() {
...
}
}
```

```php
class DescribeSmallEdition {
var $itShouldBehaveLike = array('all editions');

function itShouldAlsoBehaveLikeASmallEdition () { ... }
}
```

```php
class DescribeLargeEdition {
var $itShouldBehaveLike = array('all editions');

function itShouldAlsoBehaveLikeALargeEdition () { ... }
}
```

Just like rspec:

http://rspec.info/documentation/