Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
67de20b4
Commit
67de20b4
authored
Feb 08, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaning up the test runner.
parent
3e398d1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
runner.php
laravel/cli/tasks/test/runner.php
+6
-3
No files found.
laravel/cli/tasks/test/runner.php
View file @
67de20b4
...
@@ -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 develo
ep
r wants to test.
// locations depending on what the develo
pe
r 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment