From 443868a1c3dfb6c7d7a87c6c3859f8d8bc234836 Mon Sep 17 00:00:00 2001 From: Denis Sokolov Date: Sat, 12 Dec 2015 21:59:09 +0200 Subject: [PATCH] Allow running local phpunit --- tests/bootstrap.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 582067d..5490116 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,5 +6,8 @@ * Bootstraper for PHPUnit tests. */ error_reporting(E_ALL | E_STRICT); -$loader = require_once __DIR__ . '/../vendor/autoload.php'; +// Can be required more than once to allow running +// phpunit installed with Composer +// http://stackoverflow.com/a/12798022 +$loader = require __DIR__ . '/../vendor/autoload.php'; $loader->add('Whoops\\', __DIR__);