Skip to content

Add Composer cache step to GitHub workflow #88

Add Composer cache step to GitHub workflow

Add Composer cache step to GitHub workflow #88

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

infection.yml

on: push
5️⃣ Mutation Testing
5m 4s
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/symfony/src/Controller/AttestationResponseController.php#L46
Escaped Mutant for Mutator "LogicalOrNegation": @@ @@ throw MissingFeatureException::create('Unable to register the credential.'); } $format = $request->getContentTypeFormat(); - $format === 'json' || throw new BadRequestHttpException('Only JSON content type allowed'); + !($format === 'json' || throw new BadRequestHttpException('Only JSON content type allowed')); $content = $request->getContent(); $publicKeyCredential = $this->publicKeyCredentialLoader->deserialize($content, PublicKeyCredential::class, 'json'); $response = $publicKeyCredential->response;
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 "Concat": @@ @@ 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' . __DIR__ => '@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' => ['/../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/stimulus/src/WebauthnStimulusBundle.php#L31
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 is installed