phpspec/phpspec2 — pull request #68 by romulodl (2012-11-13 15:47:28+00:00)
Title: add bootstrap option

Added the bootstrap option (issue #52)

After looking the issue and the tips on the pull request 64. I did quickly this peace of code and added this feature:

- if you add a file called bootstrap.php to the test folder, it will be automatically loaded;
- Exceptions will be raised if you pass a invalid, inexistent or not pass any file (only --bootstrap without the /path/to/file.php)

TODO: read the yaml file for a possible bootstrap configuration and load it.

I would like a review from you guys if the way I've done is ok or if I'm breaking any pattern that you could be using.

Thanks
Romulo