diff options
| author | Asko Nõmm <asko@nth.ee> | 2024-11-10 22:55:56 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nth.ee> | 2024-11-10 22:55:56 +0200 |
| commit | f66e5928fc73d1dad27f2f785909c2ed050b6ff7 (patch) | |
| tree | f86dad76fb86eb35b46a7c63f440e9f1c8171aee | |
| parent | 246e5a24a5ceedf364e06bb13e0a26cf46ee9507 (diff) | |
Add phpunit.xml
| -rw-r--r-- | composer.json | 8 | ||||
| -rw-r--r-- | phpunit.xml | 14 | ||||
| -rw-r--r-- | tests/FileSystemDriverTest.php | 3 | ||||
| -rw-r--r-- | tests/LoggrTest.php | 2 | ||||
| -rw-r--r-- | tests/OutputDriverTest.php | 3 |
5 files changed, 18 insertions, 12 deletions
diff --git a/composer.json b/composer.json index 104a3f8..affb543 100644 --- a/composer.json +++ b/composer.json @@ -6,6 +6,14 @@ "autoload": { "psr-4": { "Asko\\Loggr\\": "src/" + }, + "classmap": [ + "src/" + ] + }, + "autoload-dev": { + "psr-4": { + "Asko\\Loggr\\Tests\\": "tests/" } }, "authors": [ diff --git a/phpunit.xml b/phpunit.xml index 297f478..43bb6c3 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,21 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" - bootstrap="vendor/autoload.php" - cacheDirectory=".phpunit.cache" - executionOrder="depends,defects" - requireCoverageMetadata="false" - beStrictAboutCoverageMetadata="false" - beStrictAboutOutputDuringTests="false" - failOnRisky="false" - failOnWarning="true"> +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd" bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache" executionOrder="depends,defects" requireCoverageMetadata="false" beStrictAboutCoverageMetadata="false" beStrictAboutOutputDuringTests="false" failOnRisky="false" failOnWarning="true"> <testsuites> <testsuite name="default"> <directory>tests</directory> </testsuite> </testsuites> - - <source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true"> + <source restrictNotices="true" restrictWarnings="true" ignoreIndirectDeprecations="true"> <include> <directory>src</directory> </include> diff --git a/tests/FileSystemDriverTest.php b/tests/FileSystemDriverTest.php index 5e4f8c3..f642b4f 100644 --- a/tests/FileSystemDriverTest.php +++ b/tests/FileSystemDriverTest.php @@ -1,5 +1,8 @@ <?php +namespace Asko\Loggr\Tests; + +use DateTime; use Asko\Loggr\Drivers\FileSystemDriver; use Asko\Loggr\Loggr; use PHPUnit\Framework\TestCase; diff --git a/tests/LoggrTest.php b/tests/LoggrTest.php index 94a166c..4abae86 100644 --- a/tests/LoggrTest.php +++ b/tests/LoggrTest.php @@ -1,5 +1,7 @@ <?php +namespace Asko\Loggr\Tests; + use Asko\Loggr\Drivers\OutputDriver; use Asko\Loggr\Loggr; use PHPUnit\Framework\TestCase; diff --git a/tests/OutputDriverTest.php b/tests/OutputDriverTest.php index a650732..76867a6 100644 --- a/tests/OutputDriverTest.php +++ b/tests/OutputDriverTest.php @@ -1,5 +1,8 @@ <?php +namespace Asko\Loggr\Tests; + +use DateTime; use Asko\Loggr\Drivers\OutputDriver; use Asko\Loggr\Loggr; use PHPUnit\Framework\TestCase; |
