Commit 67de20b4 authored by Taylor Otwell's avatar Taylor Otwell

cleaning up the test runner.

parent 3e398d1b
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
use Laravel\File; use Laravel\File;
use Laravel\Bundle; use Laravel\Bundle;
use Laravel\Request;
use Laravel\CLI\Tasks\Task; use Laravel\CLI\Tasks\Task;
class Runner extends Task { class Runner extends Task {
...@@ -76,9 +77,11 @@ class Runner extends Task { ...@@ -76,9 +77,11 @@ class Runner extends Task {
// We'll simply fire off PHPUnit with the configuration switch // We'll simply fire off PHPUnit with the configuration switch
// pointing to our temporary configuration file. This allows // pointing to our temporary configuration file. This allows
// us to flexibly run tests for any setup. // us to flexibly run tests for any setup.
passthru('phpunit -c '.path('base').'phpunit.xml'); $path = path('base').'phpunit.xml';
@unlink(path('base').'phpunit.xml'); passthru('phpunit --configuration '.$path);
@unlink($path);
} }
/** /**
...@@ -95,7 +98,7 @@ class Runner extends Task { ...@@ -95,7 +98,7 @@ class Runner extends Task {
// The PHPUnit bootstrap file contains several items that are swapped // The PHPUnit bootstrap file contains several items that are swapped
// at test time. This allows us to point PHPUnit at a few different // at test time. This allows us to point PHPUnit at a few different
// locations depending on what the develoepr wants to test. // locations depending on what the developer wants to test.
foreach (array('bootstrap', 'directory') as $item) foreach (array('bootstrap', 'directory') as $item)
{ {
$stub = $this->{"swap_{$item}"}($stub, $path, $directory); $stub = $this->{"swap_{$item}"}($stub, $path, $directory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment