Permalink
Browse files

Default to system phpunit

- If phpunit has not been installed via composer, use the system
  phpunit.
  • Loading branch information...
1 parent c6b4817 commit 35e636a13d8b926e0aa42cd6b61914d879b341ec @weierophinney weierophinney committed Oct 5, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/run-tests.php
View
1 tests/run-tests.php
@@ -32,6 +32,7 @@
chdir(__DIR__);
$phpunit_bin = __DIR__ . '/../vendor/bin/phpunit';
+$phpunit_bin = file_exists($phpunit_bin) ? $phpunit_bin : 'phpunit';
$phpunit_conf = (file_exists('phpunit.xml') ? 'phpunit.xml' : 'phpunit.xml.dist');
$phpunit_opts = "-c $phpunit_conf";
$phpunit_coverage = '';

0 comments on commit 35e636a

Please sign in to comment.