1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-23 14:32:44 +01:00

Merge pull request #572 from henriquemoody/tests

Use `autoload-dev` setting on "composer.json" file
This commit is contained in:
Jordi Boggiano 2015-06-05 12:15:43 +01:00
commit 45198d1f4a
3 changed files with 8 additions and 16 deletions

View File

@ -44,6 +44,9 @@
"autoload": {
"psr-4": {"Monolog\\": "src/Monolog"}
},
"autoload-dev": {
"psr-4": {"Monolog\\": "tests/Monolog"}
},
"provide": {
"psr/log-implementation": "1.0.0"
},

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<phpunit bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="Monolog Test Suite">
<directory>tests/Monolog/</directory>
@ -12,4 +12,8 @@
<directory suffix=".php">src/Monolog/</directory>
</whitelist>
</filter>
<php>
<ini name="date.timezone" value="UTC"/>
</php>
</phpunit>

View File

@ -1,15 +0,0 @@
<?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* 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');