phpspec/phpspec — pull request #215 by karolsojko (2013-11-15 12:08:28+00:00)
Title: Added generating of not found interfaces and implementing

I was thinking that it would be cool if `PHPSpec` helped you with generating and implementing interfaces :)
### Generating interfaces
so for example if I had a spec like this:

```php
shouldImplement('Royal\RoyaltyInterface');
}
}
```

Let's say the interface `Royal\RoyaltyInterface` didn't exist because I haven't done it yet. So when we distinguish the `shouldImplement` matcher, `PHPSpec` could ask me if I want to create the `Royal\RoyaltyInterface` - and if I said yes it could generate the file for me.

### Implementing interfaces

Ok now when the interface is created we're not quite there yet. The interface is generated but the class still doesn't implement it. So I thought it could ask me if `KingsLanding\King` should implemented `Royal\RoyaltyInterface` and if I said yes it could add the implementation header to the class :)

I think this could automate nicely a few things at least. The whole process in a console is illustrated in this screenshot: http://d.pr/i/Uefo

### Result
So in the end I would end up with something like this:
```php