From 5713dcd711b019930cd08651cae92abcc9c506e7 Mon Sep 17 00:00:00 2001 From: David Dan Date: Tue, 21 Mar 2017 15:34:05 -0400 Subject: [PATCH] Fix testing bootstrap --- tests/bootstrap.php | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 6b1e21b..7986156 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,24 +1,9 @@ addPsr4('Rx\\Thruway\\Tests\\', __DIR__); - break; - } +if (file_exists($file = __DIR__ . '/../vendor/autoload.php')) { + require $file; +} else { + throw new RuntimeException('Install dependencies to run test suite.'); } /**