laravel/laravel — pull request #896 by wildlyinaccurate (2012-07-02 18:19:21+00:00)
Title: Allow PHPUnit test stub to be defined in userland

After some discussion in #891, I decided that I would like to have more control over the PHPUnit configuration. To solve this, I have moved stub.xml into userland. I've also kept the original stub.xml as a fallback in case the user decides to delete their stub.xml, although I realise this creates some code duplication - what do you guys think?

While I was at it, I also wanted to be able to have more control over how my tests run. This is solved by passing `$_SERVER['argv']` through to `phpunit`, which allows you to do something like `php artisan test --verbose`. The only 'gotcha' with this is that Laravel has a funny way of parsing options, so if you want to do something like `php artisan test --configuration my/custom/config.xml` you actually need to do `php artisan test --configuration=my/custom/config.xml`