Skip to content

Add sprintf utility usage across multiple classes (#669) #87

Add sprintf utility usage across multiple classes (#669)

Add sprintf utility usage across multiple classes (#669) #87

Triggered via push January 4, 2025 09:38
Status Failure
Total duration 7m 9s
Artifacts

infection.yml

on: push
5️⃣ Mutation Testing
6m 59s
5️⃣ Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
5️⃣ Mutation Testing
Process completed with exit code 2.
5️⃣ Mutation Testing
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L24
Escaped Mutant for Mutator "LogicalNot": @@ @@ } public function prepend(ContainerBuilder $container): void { - if (!$this->isAssetMapperAvailable($container)) { + if ($this->isAssetMapperAvailable($container)) { return; } $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]);
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L28
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if (!$this->isAssetMapperAvailable($container)) { return; } - $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $container->prependExtensionConfig('framework', []); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L28
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ if (!$this->isAssetMapperAvailable($container)) { return; } - $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); + } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L29
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if (!$this->isAssetMapperAvailable($container)) { return; } - $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $container->prependExtensionConfig('framework', ['asset_mapper' => []]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if (!$this->isAssetMapperAvailable($container)) { return; } - $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => []]]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L31
Escaped Mutant for Mutator "Concat": @@ @@ if (!$this->isAssetMapperAvailable($container)) { return; } - $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => ['/../../assets/dist' . __DIR__ => '@web-auth/webauthn-stimulus']]]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L31
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ if (!$this->isAssetMapperAvailable($container)) { return; } - $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => ['/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L31
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ if (!$this->isAssetMapperAvailable($container)) { return; } - $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $container->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ => '@web-auth/webauthn-stimulus']]]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L39
Escaped Mutant for Mutator "LogicalNot": @@ @@ } private function isAssetMapperAvailable(ContainerBuilder $container): bool { - if (!interface_exists(AssetMapperInterface::class)) { + if (interface_exists(AssetMapperInterface::class)) { return false; } // check that FrameworkBundle 6.3 or higher is installed
5️⃣ Mutation Testing: src/stimulus/src/DependencyInjection/WebauthnStimulusExtension.php#L45
Escaped Mutant for Mutator "LogicalNot": @@ @@ } // check that FrameworkBundle 6.3 or higher is installed $bundlesMetadata = $container->getParameter('kernel.bundles_metadata'); - if (!isset($bundlesMetadata['FrameworkBundle'])) { + if (isset($bundlesMetadata['FrameworkBundle'])) { return false; } return is_file($bundlesMetadata['FrameworkBundle']['path'] . '/Resources/config/asset_mapper.php'); } }