Skip to content

update config for phpunit #566

update config for phpunit

update config for phpunit #566

Triggered via pull request November 5, 2024 17:32
@mimmi20mimmi20
synchronize #159
updates
Status Success
Total duration 10m 25s
Artifacts

continuous-integration.yml

on: pull_request
Matrix: Validate Project / Check composer dependencies with composer-dependency-analyser
Matrix: Validate Project / Check composer with composer-normalize
Matrix: Validate Project / Check composer dependencies with composer-unused
Matrix: Validate Project / Check with editorconfig-checker
Matrix: Validate Project / Lint PHP
Matrix: Validate Project / Validate markdown files
Matrix: Validate Project / Linting with overtrue/phplint
Matrix: Validate Project / Validate composer
Matrix: Validate Project / Validate yaml
Validate Project  /  Lint & Validate Status
0s
Validate Project / Lint & Validate Status
Matrix: Install Project / Install Node dependencies
Matrix: Install Project / Install PHP dependencies
Install Project  /  Install Status
0s
Install Project / Install Status
Matrix: Project Analysis / Run eslint
Matrix: Project Analysis / Check Coding Standards with PHP-CS-Fixer
Matrix: Project Analysis / Check Coding Standards with PHPCS
Matrix: Project Analysis / Check Rules with PHPMD
Matrix: Project Analysis / Run prettier
Matrix: Project Analysis / Checks with Rector
Matrix: Project Analysis / Static Code Analysis with PHPStan
Matrix: Project Analysis / Run stylelint
Project Analysis  /  Status Analytics
0s
Project Analysis / Status Analytics
Matrix: UnitTests / Code Coverage with PHPUnit
Matrix: UnitTests / UnitTests with PHPUnit
Matrix: UnitTests / UnitTests with stryker
Matrix: UnitTests / UnitTests with vitest
UnitTests  /  finish-code-coverage
2s
UnitTests / finish-code-coverage
UnitTests  /  Unit & Integration Tests Status
0s
UnitTests / Unit & Integration Tests Status
Unit & Integration Tests Status
0s
Unit & Integration Tests Status
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/ConfigProvider.php#L53
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function getServiceConfig() : array { - return ['factories' => [Minify::class => MinifyFactory::class], 'aliases' => [MinifyInterface::class => Minify::class]]; + return ['factories' => [], 'aliases' => [MinifyInterface::class => Minify::class]]; } /** * Get view helper configuration
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/ConfigProvider.php#L56
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function getServiceConfig() : array { - return ['factories' => [Minify::class => MinifyFactory::class], 'aliases' => [MinifyInterface::class => Minify::class]]; + return ['factories' => [Minify::class => MinifyFactory::class], 'aliases' => []]; } /** * Get view helper configuration
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/ConfigProvider.php#L73
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function getViewHelperConfig() : array { - return ['aliases' => ['baseUrl' => BaseUrl::class, 'revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [BaseUrl::class => BaseUrlFactory::class, RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]]; + return ['aliases' => ['revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [BaseUrl::class => BaseUrlFactory::class, RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]]; } }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/ConfigProvider.php#L79
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function getViewHelperConfig() : array { - return ['aliases' => ['baseUrl' => BaseUrl::class, 'revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [BaseUrl::class => BaseUrlFactory::class, RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]]; + return ['aliases' => ['baseUrl' => BaseUrl::class, 'revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]]; } }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/Minify.php#L65
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ */ private array $packageSet = []; /** @throws JsonException */ - public function __construct(string|null $groupsFile, private readonly string|null $publicDir = null, private readonly string|null $revision = null, private readonly bool $enabled = false) + public function __construct(string|null $groupsFile, private readonly string|null $publicDir = null, private readonly string|null $revision = null, private readonly bool $enabled = true) { if ($groupsFile === null) { return;
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/Minify.php#L77
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ if ($content === false) { return; } - $decoded = json_decode($content, true, 512, JSON_THROW_ON_ERROR); + $decoded = json_decode($content, true, 511, JSON_THROW_ON_ERROR); assert(is_array($decoded)); if (array_key_exists('assets', $decoded) && is_array($decoded['assets'])) { $this->groups = $decoded['assets'];
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/Minify.php#L77
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ if ($content === false) { return; } - $decoded = json_decode($content, true, 512, JSON_THROW_ON_ERROR); + $decoded = json_decode($content, true, 513, JSON_THROW_ON_ERROR); assert(is_array($decoded)); if (array_key_exists('assets', $decoded) && is_array($decoded['assets'])) { $this->groups = $decoded['assets'];
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/Minify.php#L80
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ } $decoded = json_decode($content, true, 512, JSON_THROW_ON_ERROR); assert(is_array($decoded)); - if (array_key_exists('assets', $decoded) && is_array($decoded['assets'])) { + if (array_key_exists('assets', $decoded) || is_array($decoded['assets'])) { $this->groups = $decoded['assets']; } }
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/Minify.php#L115
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ return ['files' => [], 'attr' => []]; } $group = $this->groups[$package]; - if ($this->enabled && $this->publicDir !== null && file_exists($this->publicDir . '/js/min/' . $group['fileName'])) { + if ($this->enabled && $this->publicDir !== null && file_exists($this->publicDir . '/js/min/')) { return ['files' => ['/js/min/' . $group['fileName']], 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []]; } $this->packageSet = [$package];
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest): src/Minify.php#L118
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } $group = $this->groups[$package]; if ($this->enabled && $this->publicDir !== null && file_exists($this->publicDir . '/js/min/' . $group['fileName'])) { - return ['files' => ['/js/min/' . $group['fileName']], 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []]; + return ['files' => [$group['fileName'] . '/js/min/'], 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []]; } $this->packageSet = [$package]; return ['files' => $this->expandSubpackages($group['input']), 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []];