Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
Change to use path to normalize phpunit command. This should allow th…
Browse files Browse the repository at this point in the history
…e command to work on all OS's (Currently on windows it doesn't work because the path uses forward slashes).
  • Loading branch information
pataelmo committed May 21, 2016
1 parent afc9252 commit 6560c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tasks/phpunit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import runTests from './shared/Tests';

var path = require('path');
/*
|----------------------------------------------------------------
| PHPUnit Testing
Expand All @@ -15,6 +16,6 @@ Elixir.extend('phpUnit', function(src, command) {
runTests(
'PHPUnit',
src || (Elixir.config.testing.phpUnit.path + '/**/*Test.php'),
command || 'vendor/bin/phpunit --verbose'
command || (path.normalize('vendor/bin/phpunit') + ' --verbose')
);
});

0 comments on commit 6560c0b

Please sign in to comment.