Merge pull request #635 from web-auth/deprecations/icon #72
infection.yml
on: push
5️⃣ Mutation Testing
5m 33s
Annotations
10 warnings
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
|
5️⃣ Mutation Testing:
src/stimulus/src/WebauthnStimulusBundle.php#L37
Escaped Mutant for Mutator "LogicalNot":
@@ @@
}
// check that FrameworkBundle 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');
}
}
|