mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-17 03:21:23 +02:00
Merge pull request #572 from henriquemoody/tests
Use `autoload-dev` setting on "composer.json" file
This commit is contained in:
@@ -44,6 +44,9 @@
|
|||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {"Monolog\\": "src/Monolog"}
|
"psr-4": {"Monolog\\": "src/Monolog"}
|
||||||
},
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {"Monolog\\": "tests/Monolog"}
|
||||||
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
"psr/log-implementation": "1.0.0"
|
"psr/log-implementation": "1.0.0"
|
||||||
},
|
},
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<phpunit bootstrap="tests/bootstrap.php" colors="true">
|
<phpunit bootstrap="vendor/autoload.php" colors="true">
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Monolog Test Suite">
|
<testsuite name="Monolog Test Suite">
|
||||||
<directory>tests/Monolog/</directory>
|
<directory>tests/Monolog/</directory>
|
||||||
@@ -12,4 +12,8 @@
|
|||||||
<directory suffix=".php">src/Monolog/</directory>
|
<directory suffix=".php">src/Monolog/</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
<php>
|
||||||
|
<ini name="date.timezone" value="UTC"/>
|
||||||
|
</php>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
@@ -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');
|
|
Reference in New Issue
Block a user