Skip to content

Add sprintf imports and update dependencies and baselines (#668) #93

Add sprintf imports and update dependencies and baselines (#668)

Add sprintf imports and update dependencies and baselines (#668) #93

Triggered via push January 4, 2025 10:16
Status Success
Total duration 5m 47s
Artifacts

infection.yml

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

Annotations

11 warnings
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/WebauthnStimulusBundle.php#L16
Escaped Mutant for Mutator "LogicalNot": @@ @@ { public function prependExtension(ContainerConfigurator $container, ContainerBuilder $builder): void { - if (!$this->isAssetMapperAvailable($builder)) { + if ($this->isAssetMapperAvailable($builder)) { return; } $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]);
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L20
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if (!$this->isAssetMapperAvailable($builder)) { return; } - $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $builder->prependExtensionConfig('framework', []); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L20
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ if (!$this->isAssetMapperAvailable($builder)) { return; } - $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]); + } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L21
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if (!$this->isAssetMapperAvailable($builder)) { return; } - $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $builder->prependExtensionConfig('framework', ['asset_mapper' => []]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L22
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ if (!$this->isAssetMapperAvailable($builder)) { return; } - $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => []]]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L23
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ if (!$this->isAssetMapperAvailable($builder)) { return; } - $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => ['/../assets/dist' => '@web-auth/webauthn-stimulus']]]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L23
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ if (!$this->isAssetMapperAvailable($builder)) { return; } - $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]); + $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ => '@web-auth/webauthn-stimulus']]]); } private function isAssetMapperAvailable(ContainerBuilder $container): bool {
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Compiler/DynamicRouteCompilerPass.php#L29
Escaped Mutant for Mutator "Throw_": @@ @@ $taggedServices = $container->findTaggedServiceIds(self::TAG); foreach ($taggedServices as $id => $tags) { foreach ($tags as $attributes) { - array_key_exists('path', $attributes) || throw new InvalidArgumentException(sprintf('The path is missing for "%s"', $id)); + array_key_exists('path', $attributes) || new InvalidArgumentException(sprintf('The path is missing for "%s"', $id)); array_key_exists('host', $attributes) || throw new InvalidArgumentException(sprintf('The host is missing for "%s"', $id)); $definition->addMethodCall('add', [$attributes['path'], $attributes['host'], $id, $attributes['method'] ?? 'POST']); }
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Compiler/DynamicRouteCompilerPass.php#L29
Escaped Mutant for Mutator "LogicalOrNegation": @@ @@ $taggedServices = $container->findTaggedServiceIds(self::TAG); foreach ($taggedServices as $id => $tags) { foreach ($tags as $attributes) { - array_key_exists('path', $attributes) || throw new InvalidArgumentException(sprintf('The path is missing for "%s"', $id)); + !(array_key_exists('path', $attributes) || throw new InvalidArgumentException(sprintf('The path is missing for "%s"', $id))); array_key_exists('host', $attributes) || throw new InvalidArgumentException(sprintf('The host is missing for "%s"', $id)); $definition->addMethodCall('add', [$attributes['path'], $attributes['host'], $id, $attributes['method'] ?? 'POST']); }
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Compiler/DynamicRouteCompilerPass.php#L33
Escaped Mutant for Mutator "Throw_": @@ @@ foreach ($taggedServices as $id => $tags) { foreach ($tags as $attributes) { array_key_exists('path', $attributes) || throw new InvalidArgumentException(sprintf('The path is missing for "%s"', $id)); - array_key_exists('host', $attributes) || throw new InvalidArgumentException(sprintf('The host is missing for "%s"', $id)); + array_key_exists('host', $attributes) || new InvalidArgumentException(sprintf('The host is missing for "%s"', $id)); $definition->addMethodCall('add', [$attributes['path'], $attributes['host'], $id, $attributes['method'] ?? 'POST']); } } } }