From 9ad874d69e3942a4b81df6f0c989ed991b7c1b25 Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Sat, 19 Apr 2014 22:01:22 -0700 Subject: [PATCH] Use Composer provided phpunit for tests This makes versioning pinning easier --- tests/bootstrap.php | 2 +- tests/runTests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 3548183..c656c67 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -35,6 +35,6 @@ if (!file_exists($filename)) { $filename = __DIR__ .'/../autoload.php'; require_once $filename; } else { - $loader = require_once $filename; + $loader = require $filename; $loader->add('Fetch\\Test', __DIR__); } diff --git a/tests/runTests.sh b/tests/runTests.sh index d4dc032..c4a37bc 100755 --- a/tests/runTests.sh +++ b/tests/runTests.sh @@ -7,7 +7,7 @@ if [ ! -n "$TRAVIS" ]; then fi echo 'Running unit tests.' -phpunit --verbose --coverage-clover build/logs/clover.xml +./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml echo '' echo ''