Skip to content

update config for phpunit #563

update config for phpunit

update config for phpunit #563

Triggered via push November 5, 2024 17:29
Status Success
Total duration 11m 19s
Artifacts
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: Code Coverage with PHPUnit
Matrix: UnitTests / Code Coverage with PHPUnit
Matrix: UnitTests / UnitTests with PHPUnit
Matrix: UnitTests / UnitTests with stryker
Matrix: UnitTests / UnitTests with vitest
finish-code-coverage
4s
finish-code-coverage
UnitTests  /  finish-code-coverage
3s
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

30 warnings
Code Coverage with PHPUnit (ubuntu-22.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
Code Coverage with PHPUnit (ubuntu-22.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
Code Coverage with PHPUnit (ubuntu-22.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]]; } }
Code Coverage with PHPUnit (ubuntu-22.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]]; } }
Code Coverage with PHPUnit (ubuntu-22.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;
Code Coverage with PHPUnit (ubuntu-22.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'];
Code Coverage with PHPUnit (ubuntu-22.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'];
Code Coverage with PHPUnit (ubuntu-22.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']; } }
Code Coverage with PHPUnit (ubuntu-22.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];
Code Coverage with PHPUnit (ubuntu-22.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'] : []];
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
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
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]]; } }
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]]; } }
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;
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'];
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'];
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']; } }
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];
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'] : []];
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'] : []];