fix tests namespace

This commit is contained in:
Daniel Seifert 2024-06-16 00:01:36 +02:00
parent 6ab8a5c0f3
commit 90b8a71e12
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170
7 changed files with 44 additions and 6 deletions

View File

@ -31,7 +31,8 @@
"friendsofphp/php-cs-fixer": "~3.13.0",
"phpstan/phpstan": "^1.10",
"rector/rector": "^0.18.13",
"mikey179/vfsstream": "^1.6.8"
"mikey179/vfsstream": "^1.6.8",
"infection/infection": "^0.29.5"
},
"autoload": {
"psr-4": {
@ -55,6 +56,8 @@
"phpunit": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --config=vendor/d3/oxid-dic-handler/tests/ --no-coverage",
"phpunit-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --config=vendor/d3/oxid-dic-handler/tests/ --coverage-html=reports/phpunit/oxid-dic-handler",
"infection": "./vendor/bin/infection --configuration=vendor/d3/oxid-dic-handler/infection.json5",
"rector": "./vendor/bin/rector process --dry-run --config ./vendor/d3/oxid-dic-handler/rector.php"
}
}

35
infection.json5 Normal file
View File

@ -0,0 +1,35 @@
{
"source": {
"directories": [
"vendor/d3/oxid-dic-handler"
],
"excludes": [
".php-cs-fixer.php",
"rector.php",
"tests"
]
},
"timeout": 60,
"logs": {
"text": "../../../reports/infection/d3DICHandler/infection.log",
"html": "../../../reports/infection/d3DICHandler/infection.html",
"summary": "../../../reports/infection/d3DICHandler/summary.log",
"json": "../../../reports/infection/d3DICHandler/infection-log.json",
"perMutator": "../../../reports/infection/d3DICHandler/per-mutator.md",
"summaryJson": "../../../reports/infection/d3DICHandler/summary.json"
},
"tmpDir": "./infection/tmp",
"phpUnit": {
"configDir": "tests"
},
"mutators": {
"@default": true,
"@function_signature": false,
"global-ignoreSourceCodeByRegex": [
".*\\sstartProfile\\(.*",
".*\\sstopProfile\\(.*"
]
},
"testFramework":"phpunit",
"bootstrap":"source/bootstrap.php"
}

View File

@ -15,7 +15,7 @@
declare(strict_types=1);
namespace D3\DIContainerHandler\tests\autoload;
namespace D3\DIContainerHandler\tests\unit\autoload;
use D3\DIContainerHandler\d3DicException;
use D3\TestingTools\Development\CanAccessRestricted;

View File

@ -15,7 +15,7 @@
declare(strict_types=1);
namespace D3\DIContainerHandler\tests;
namespace D3\DIContainerHandler\tests\unit;
use D3\DIContainerHandler\d3DicException;
use InvalidArgumentException;

View File

@ -15,7 +15,7 @@
declare(strict_types=1);
namespace D3\DIContainerHandler\tests;
namespace D3\DIContainerHandler\tests\unit;
use D3\DIContainerHandler\d3DicException;
use D3\DIContainerHandler\d3DicHandler;

View File

@ -15,7 +15,7 @@
declare(strict_types=1);
namespace D3\DIContainerHandler\tests;
namespace D3\DIContainerHandler\tests\unit;
use D3\DIContainerHandler\d3DicHandler;
use D3\DIContainerHandler\d3DicUtilities;

View File

@ -15,7 +15,7 @@
declare(strict_types=1);
namespace D3\DIContainerHandler\tests;
namespace D3\DIContainerHandler\tests\unit;
use Assert\InvalidArgumentException;
use D3\DIContainerHandler\definitionFileContainer;