Skip to content

Merge pull request #637 from web-auth/temp-1adf3c #71

Merge pull request #637 from web-auth/temp-1adf3c

Merge pull request #637 from web-auth/temp-1adf3c #71

Triggered via push July 20, 2024 05:31
Status Success
Total duration 5m 52s
Artifacts

infection.yml

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

Annotations

10 warnings
5️⃣ Mutation Testing: src/symfony/src/DataCollector/WebauthnCollector.php#L101
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ */ public static function getSubscribedEvents(): array { - return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; + return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => [], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; } public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void {
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/symfony/src/DataCollector/WebauthnCollector.php#L102
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ */ public static function getSubscribedEvents(): array { - return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; + return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => [], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; } public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void {
5️⃣ Mutation Testing: src/symfony/src/DataCollector/WebauthnCollector.php#L105
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ */ public static function getSubscribedEvents(): array { - return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; + return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => [], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; } public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void {
5️⃣ Mutation Testing: src/symfony/src/DataCollector/WebauthnCollector.php#L108
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ */ public static function getSubscribedEvents(): array { - return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; + return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => [], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; } public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void {
5️⃣ Mutation Testing: src/symfony/src/DataCollector/WebauthnCollector.php#L111
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ */ public static function getSubscribedEvents(): array { - return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => ['addAuthenticatorAssertionResponseValidationFailed']]; + return [PublicKeyCredentialCreationOptionsCreatedEvent::class => ['addPublicKeyCredentialCreationOptions'], PublicKeyCredentialRequestOptionsCreatedEvent::class => ['addPublicKeyCredentialRequestOptions'], AuthenticatorAttestationResponseValidationSucceededEvent::class => ['addAuthenticatorAttestationResponseValidationSucceeded'], AuthenticatorAttestationResponseValidationFailedEvent::class => ['addAuthenticatorAttestationResponseValidationFailed'], AuthenticatorAssertionResponseValidationSucceededEvent::class => ['addAuthenticatorAssertionResponseValidationSucceeded'], AuthenticatorAssertionResponseValidationFailedEvent::class => []]; } public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void {
5️⃣ Mutation Testing: src/symfony/src/DataCollector/WebauthnCollector.php#L120
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void { $cloner = new VarCloner(); - $this->publicKeyCredentialCreationOptions[] = ['options' => $cloner->cloneVar($event->publicKeyCredentialCreationOptions), 'json' => $this->serializer->serialize($event->publicKeyCredentialCreationOptions, JsonEncoder::FORMAT, [AbstractObjectNormalizer::SKIP_NULL_VALUES => true, JsonEncode::OPTIONS => JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT])]; + $this->publicKeyCredentialCreationOptions[] = ['json' => $this->serializer->serialize($event->publicKeyCredentialCreationOptions, JsonEncoder::FORMAT, [AbstractObjectNormalizer::SKIP_NULL_VALUES => true, JsonEncode::OPTIONS => JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT])]; } public function addAuthenticatorAttestationResponseValidationSucceeded(AuthenticatorAttestationResponseValidationSucceededEvent $event): void {
5️⃣ Mutation Testing: src/symfony/src/DataCollector/WebauthnCollector.php#L121
Escaped Mutant for Mutator "ArrayItem": @@ @@ public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void { $cloner = new VarCloner(); - $this->publicKeyCredentialCreationOptions[] = ['options' => $cloner->cloneVar($event->publicKeyCredentialCreationOptions), 'json' => $this->serializer->serialize($event->publicKeyCredentialCreationOptions, JsonEncoder::FORMAT, [AbstractObjectNormalizer::SKIP_NULL_VALUES => true, JsonEncode::OPTIONS => JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT])]; + $this->publicKeyCredentialCreationOptions[] = ['options' > $cloner->cloneVar($event->publicKeyCredentialCreationOptions), 'json' => $this->serializer->serialize($event->publicKeyCredentialCreationOptions, JsonEncoder::FORMAT, [AbstractObjectNormalizer::SKIP_NULL_VALUES => true, JsonEncode::OPTIONS => JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT])]; } public function addAuthenticatorAttestationResponseValidationSucceeded(AuthenticatorAttestationResponseValidationSucceededEvent $event): void {
5️⃣ Mutation Testing: src/symfony/src/DataCollector/WebauthnCollector.php#L125
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ public function addPublicKeyCredentialCreationOptions(PublicKeyCredentialCreationOptionsCreatedEvent $event): void { $cloner = new VarCloner(); - $this->publicKeyCredentialCreationOptions[] = ['options' => $cloner->cloneVar($event->publicKeyCredentialCreationOptions), 'json' => $this->serializer->serialize($event->publicKeyCredentialCreationOptions, JsonEncoder::FORMAT, [AbstractObjectNormalizer::SKIP_NULL_VALUES => true, JsonEncode::OPTIONS => JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT])]; + $this->publicKeyCredentialCreationOptions[] = ['options' => $cloner->cloneVar($event->publicKeyCredentialCreationOptions), 'json' => $this->serializer->serialize($event->publicKeyCredentialCreationOptions, JsonEncoder::FORMAT, [JsonEncode::OPTIONS => JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT])]; } public function addAuthenticatorAttestationResponseValidationSucceeded(AuthenticatorAttestationResponseValidationSucceededEvent $event): void {