From 5d3f6de972228d43a5f347b7e83f2747636e5115 Mon Sep 17 00:00:00 2001 From: Henrique Moody Date: Thu, 4 Jun 2015 11:20:52 -0300 Subject: [PATCH] Use `autoload-dev` setting on "composer.json" file This also removes "tests/bootstrap.php" file and defines `date.timezone` in "phpunit.xml.dist". --- composer.json | 3 +++ phpunit.xml.dist | 6 +++++- tests/bootstrap.php | 15 --------------- 3 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 tests/bootstrap.php diff --git a/composer.json b/composer.json index 6cd984cc..8625812c 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,9 @@ "autoload": { "psr-4": {"Monolog\\": "src/Monolog"} }, + "autoload-dev": { + "psr-4": {"Monolog\\": "tests/Monolog"} + }, "provide": { "psr/log-implementation": "1.0.0" }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 17545707..20d82b63 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,6 @@ - + tests/Monolog/ @@ -12,4 +12,8 @@ src/Monolog/ + + + + diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100644 index b78740e2..00000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,15 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -$loader = require __DIR__ . "/../vendor/autoload.php"; -$loader->addPsr4('Monolog\\', __DIR__.'/Monolog'); - -date_default_timezone_set('UTC');