Replace Makefile with Castor task runner (#37) #4
Annotations
10 warnings
5️⃣ Mutation Testing:
src/DependencyInjection/Compiler/OtherObjectCompilerPass.php#L18
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
public const TAG = 'cbor.other_object';
public function process(ContainerBuilder $container): void
{
- if (!$container->hasDefinition(OtherObjectManagerInterface::class)) {
+ if ($container->hasDefinition(OtherObjectManagerInterface::class)) {
return;
}
$definition = $container->getDefinition(OtherObjectManagerInterface::class);
|
5️⃣ Mutation Testing:
src/DependencyInjection/Compiler/TagCompilerPass.php#L18
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
public const TAG = 'cbor.tag';
public function process(ContainerBuilder $container): void
{
- if (!$container->hasDefinition(TagManagerInterface::class)) {
+ if ($container->hasDefinition(TagManagerInterface::class)) {
return;
}
$definition = $container->getDefinition(TagManagerInterface::class);
|
5️⃣ Mutation Testing:
src/DependencyInjection/SpomkyLabsCborExtension.php#L28
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function load(array $configs, ContainerBuilder $container): void
{
- $container->registerForAutoconfiguration(TagInterface::class)->addTag(TagCompilerPass::TAG);
+
$container->registerForAutoconfiguration(OtherObjectInterface::class)->addTag(OtherObjectCompilerPass::TAG);
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('services.php');
|
5️⃣ Mutation Testing:
src/DependencyInjection/SpomkyLabsCborExtension.php#L29
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function load(array $configs, ContainerBuilder $container): void
{
$container->registerForAutoconfiguration(TagInterface::class)->addTag(TagCompilerPass::TAG);
- $container->registerForAutoconfiguration(OtherObjectInterface::class)->addTag(OtherObjectCompilerPass::TAG);
+
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('services.php');
}
|
5️⃣ Mutation Testing:
src/DependencyInjection/SpomkyLabsCborExtension.php#L31
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
{
$container->registerForAutoconfiguration(TagInterface::class)->addTag(TagCompilerPass::TAG);
$container->registerForAutoconfiguration(OtherObjectInterface::class)->addTag(OtherObjectCompilerPass::TAG);
- $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
+ $loader = new PhpFileLoader($container, new FileLocator('/../Resources/config' . __DIR__));
$loader->load('services.php');
}
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface
|
5️⃣ Mutation Testing:
src/DependencyInjection/SpomkyLabsCborExtension.php#L31
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
$container->registerForAutoconfiguration(TagInterface::class)->addTag(TagCompilerPass::TAG);
$container->registerForAutoconfiguration(OtherObjectInterface::class)->addTag(OtherObjectCompilerPass::TAG);
- $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
+ $loader = new PhpFileLoader($container, new FileLocator('/../Resources/config'));
$loader->load('services.php');
}
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface
|
5️⃣ Mutation Testing:
src/DependencyInjection/SpomkyLabsCborExtension.php#L31
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
$container->registerForAutoconfiguration(TagInterface::class)->addTag(TagCompilerPass::TAG);
$container->registerForAutoconfiguration(OtherObjectInterface::class)->addTag(OtherObjectCompilerPass::TAG);
- $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
+ $loader = new PhpFileLoader($container, new FileLocator(__DIR__));
$loader->load('services.php');
}
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface
|
5️⃣ Mutation Testing:
src/DependencyInjection/SpomkyLabsCborExtension.php#L32
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$container->registerForAutoconfiguration(TagInterface::class)->addTag(TagCompilerPass::TAG);
$container->registerForAutoconfiguration(OtherObjectInterface::class)->addTag(OtherObjectCompilerPass::TAG);
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- $loader->load('services.php');
+
}
public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface
{
|
5️⃣ Mutation Testing:
src/SpomkyLabsCborBundle.php#L22
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function build(ContainerBuilder $container): void
{
- parent::build($container);
+
$container->addCompilerPass(new TagCompilerPass());
$container->addCompilerPass(new OtherObjectCompilerPass());
}
}
|
5️⃣ Mutation Testing:
src/SpomkyLabsCborBundle.php#L23
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function build(ContainerBuilder $container): void
{
parent::build($container);
- $container->addCompilerPass(new TagCompilerPass());
+
$container->addCompilerPass(new OtherObjectCompilerPass());
}
}
|