From 5d36b5df7a59a2e47b6ac289ac4dc02d0ed9a7d6 Mon Sep 17 00:00:00 2001 From: adlawson Date: Tue, 17 Sep 2013 13:06:43 +0100 Subject: [PATCH] Fix test bootstrap autoloader The previous `require_once` statement returns `true` when it loads the autoload file rather than an instance of `ClassLoader`. Changing the statement to `require` returns the instance needed to add the Monolog test directory. --- tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 189f4a68..496c3880 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -9,5 +9,5 @@ * file that was distributed with this source code. */ -$loader = require_once __DIR__ . "/../vendor/autoload.php"; +$loader = require __DIR__ . "/../vendor/autoload.php"; $loader->add('Monolog\\', __DIR__);