Skip to content

Rename Attributes for Projector #1972

Rename Attributes for Projector

Rename Attributes for Projector #1972

Triggered via pull request January 2, 2024 17:48
Status Failure
Total duration 2m 40s
Artifacts

mutation-tests.yml

on: pull_request
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
Mutation tests (locked, 8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation tests (locked, 8.3, ubuntu-latest): src/Aggregate/AggregateRootAttributeBehaviour.php#L14
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ { use AggregateRootBehaviour; use AggregateRootMetadataAwareBehaviour; - protected function apply(object $event) : void + private function apply(object $event) : void { $metadata = static::metadata(); if (!array_key_exists($event::class, $metadata->applyMethods)) {
Mutation tests (locked, 8.3, ubuntu-latest): src/Attribute/Projector.php#L14
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ #[Attribute(Attribute::TARGET_CLASS)] final class Projector { - public function __construct(private string $name, private int $version = 0) + public function __construct(private string $name, private int $version = -1) { } public function name() : string
Mutation tests (locked, 8.3, ubuntu-latest): src/Attribute/Projector.php#L14
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ #[Attribute(Attribute::TARGET_CLASS)] final class Projector { - public function __construct(private string $name, private int $version = 0) + public function __construct(private string $name, private int $version = 1) { } public function name() : string
Mutation tests (locked, 8.3, ubuntu-latest): src/Console/Command/DatabaseCreateCommand.php#L49
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ $tempConnection = $this->helper->copyConnectionWithoutDatabase($this->connection); $ifNotExists = InputHelper::bool($input->getOption('if-not-exists')); $hasDatabase = $this->helper->hasDatabase($tempConnection, $databaseName); - if ($ifNotExists && $hasDatabase) { + if ($ifNotExists || $hasDatabase) { $console->warning(sprintf('Database "%s" already exists. Skipped.', $databaseName)); $tempConnection->close(); return 0;
Mutation tests (locked, 8.3, ubuntu-latest): src/Console/Command/DatabaseCreateCommand.php#L51
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $hasDatabase = $this->helper->hasDatabase($tempConnection, $databaseName); if ($ifNotExists && $hasDatabase) { $console->warning(sprintf('Database "%s" already exists. Skipped.', $databaseName)); - $tempConnection->close(); + return 0; } try {
Mutation tests (locked, 8.3, ubuntu-latest): src/Console/Command/DatabaseCreateCommand.php#L61
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $console->success(sprintf('Created database "%s"', $databaseName)); } catch (Throwable $e) { $console->error(sprintf('Could not create database "%s"', $databaseName)); - $console->error($e->getMessage()); + $tempConnection->close(); return 2; }
Mutation tests (locked, 8.3, ubuntu-latest): src/Console/Command/DatabaseCreateCommand.php#L63
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } catch (Throwable $e) { $console->error(sprintf('Could not create database "%s"', $databaseName)); $console->error($e->getMessage()); - $tempConnection->close(); + return 2; } $tempConnection->close();
Mutation tests (locked, 8.3, ubuntu-latest): src/Console/Command/DatabaseCreateCommand.php#L68
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $tempConnection->close(); return 2; } - $tempConnection->close(); + return 0; } }
Mutation tests (locked, 8.3, ubuntu-latest): src/Console/Command/DatabaseDropCommand.php#L51
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $force = InputHelper::bool($input->getOption('force')); if (!$force) { $console->caution('This operation should not be executed in a production environment.'); - $console->warning(sprintf('Would drop the database "%s". Please run the operation with --force to execute.', $databaseName)); + $console->caution('All data will be lost!'); return 2; }
Mutation tests (locked, 8.3, ubuntu-latest): src/Console/Command/DatabaseDropCommand.php#L52
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (!$force) { $console->caution('This operation should not be executed in a production environment.'); $console->warning(sprintf('Would drop the database "%s". Please run the operation with --force to execute.', $databaseName)); - $console->caution('All data will be lost!'); + return 2; } $ifExists = InputHelper::bool($input->getOption('if-exists'));