Skip to content

Merge pull request #36 from Spomky-Labs/3.1.x-merge-up-into-3.2.x_0VT… #73

Merge pull request #36 from Spomky-Labs/3.1.x-merge-up-into-3.2.x_0VT…

Merge pull request #36 from Spomky-Labs/3.1.x-merge-up-into-3.2.x_0VT… #73

Triggered via push April 11, 2024 06:37
Status Success
Total duration 1m 43s
Artifacts

integrate.yml

on: push
0️⃣ Byte-level
4s
0️⃣ Byte-level
1️⃣ Syntax errors
23s
1️⃣ Syntax errors
3️⃣ Static Analysis
43s
3️⃣ Static Analysis
4️⃣ Coding Standards
40s
4️⃣ Coding Standards
5️⃣ Mutation Testing
1m 6s
5️⃣ Mutation Testing
6️⃣ Rector Checkstyle
39s
6️⃣ Rector Checkstyle
7️⃣ Exported files
3s
7️⃣ Exported files
Matrix: 2️⃣ Unit and functional tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Compiler/PayloadCacheCompilerPass.php#L37
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ } private function processForService(ContainerBuilder $container, string $class, string $cache, string $parameter) : void { - if (!$container->hasDefinition($class) || !$container->hasAlias($cache)) { + if (!$container->hasDefinition($class) && !$container->hasAlias($cache)) { return; } $cacheLifetime = $container->getParameter($parameter);
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Compiler/SymfonyServiceCompilerPass.php#L18
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ { public function process(ContainerBuilder $container) : void { - if (!$container->hasDefinition('http_client')) { + if ($container->hasDefinition('http_client')) { return; } $definition = new Definition(WebPush::class, [new Reference('http_client'), new Reference(ExtensionManager::class)]);
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Compiler/SymfonyServiceCompilerPass.php#L22
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (!$container->hasDefinition('http_client')) { return; } - $definition = new Definition(WebPush::class, [new Reference('http_client'), new Reference(ExtensionManager::class)]); + $definition = new Definition(WebPush::class, [new Reference(ExtensionManager::class)]); $definition->setPublic(true); $container->setDefinition('web_push.service', $definition); } }
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Compiler/SymfonyServiceCompilerPass.php#L26
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ return; } $definition = new Definition(WebPush::class, [new Reference('http_client'), new Reference(ExtensionManager::class)]); - $definition->setPublic(true); + $definition->setPublic(false); $container->setDefinition('web_push.service', $definition); } }
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Compiler/SymfonyServiceCompilerPass.php#L26
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ return; } $definition = new Definition(WebPush::class, [new Reference('http_client'), new Reference(ExtensionManager::class)]); - $definition->setPublic(true); + $container->setDefinition('web_push.service', $definition); } }
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Compiler/SymfonyServiceCompilerPass.php#L27
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } $definition = new Definition(WebPush::class, [new Reference('http_client'), new Reference(ExtensionManager::class)]); $definition->setPublic(true); - $container->setDefinition('web_push.service', $definition); + } }
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Configuration.php#L113
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ if (!is_int($conf)) { return true; } - return $conf < 0 || $conf > AES128GCM::PADDING_MAX; + return $conf < 0 && $conf > AES128GCM::PADDING_MAX; })->thenInvalid(sprintf('The padding must have one of the following value: none, recommended, max or an integer between 0 and %d', AES128GCM::PADDING_MAX))->end()->end()->scalarNode('cache')->defaultNull()->info('A PSR6 cache pool to enable caching feature')->end()->scalarNode('cache_lifetime')->defaultValue('now + 30min')->info('A PSR6 cache pool to enable caching feature')->end()->end()->end()->arrayNode('aesgcm')->addDefaultsIfNotSet()->children()->scalarNode('padding')->defaultValue('recommended')->info('Length of the padding: none, recommended, max or and integer')->validate()->ifTrue(static function ($conf) : bool { if (in_array($conf, ['none', 'max', 'recommended'], true)) { return false;
5️⃣ Mutation Testing: src/bundle/DependencyInjection/Configuration.php#L148
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ if (!is_int($conf)) { return true; } - return $conf < 0 || $conf > AESGCM::PADDING_MAX; + return $conf < 0 && $conf > AESGCM::PADDING_MAX; })->thenInvalid(sprintf('The padding must have one of the following value: none, recommended, max or an integer between 0 and %d', AESGCM::PADDING_MAX))->end()->end()->scalarNode('cache')->defaultNull()->info('A PSR6 cache pool to enable caching feature')->end()->scalarNode('cache_lifetime')->defaultValue('now + 30min')->info('A PSR6 cache pool to enable caching feature')->end()->end()->end()->end()->end()->end(); return $treeBuilder; } }
5️⃣ Mutation Testing: src/bundle/DependencyInjection/WebPushExtension.php#L38
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $processor = new Processor(); $config = $processor->processConfiguration($this->getConfiguration($configs, $container), $configs); - $container->registerForAutoconfiguration(\WebPush\Extension::class)->addTag(ExtensionCompilerPass::TAG); + $container->registerForAutoconfiguration(Loggable::class)->addTag(LoggerSetterCompilerPass::TAG); $container->registerForAutoconfiguration(ContentEncoding::class)->addTag(PayloadContentEncodingCompilerPass::TAG); $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/'));
5️⃣ Mutation Testing: src/bundle/DependencyInjection/WebPushExtension.php#L39
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $processor = new Processor(); $config = $processor->processConfiguration($this->getConfiguration($configs, $container), $configs); $container->registerForAutoconfiguration(\WebPush\Extension::class)->addTag(ExtensionCompilerPass::TAG); - $container->registerForAutoconfiguration(Loggable::class)->addTag(LoggerSetterCompilerPass::TAG); + $container->registerForAutoconfiguration(ContentEncoding::class)->addTag(PayloadContentEncodingCompilerPass::TAG); $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/')); $loader->load('services.php');