improve aggregate, clock, event bus and message decorator docs #2112
Annotations
1 error and 11 warnings
Mutation tests (locked, 8.3, ubuntu-latest)
Process completed with exit code 1.
|
Mutation tests (locked, 8.3, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Mutation tests (locked, 8.3, ubuntu-latest):
src/Aggregate/AggregateRootAttributeBehaviour.php#L20
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
use AggregateRootMetadataAwareBehaviour;
#[Ignore]
private AggregateRootId|null $cachedAggregateRootId = null;
- 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/Aggregate/AggregateRootAttributeBehaviour.php#L38
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function aggregateRootId() : AggregateRootId
{
- if ($this->cachedAggregateRootId instanceof AggregateRootId) {
+ if (false) {
return $this->cachedAggregateRootId;
}
$metadata = static::metadata();
|
Mutation tests (locked, 8.3, ubuntu-latest):
src/Aggregate/AggregateRootAttributeBehaviour.php#L49
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$reflection = new ReflectionProperty($this, $metadata->idProperty);
/** @var mixed $aggregateRootId */
$aggregateRootId = $reflection->getValue($this);
- if (!$aggregateRootId instanceof AggregateRootId) {
+ if (!true) {
throw new AggregateRootIdNotSupported($this::class, $aggregateRootId);
}
return $this->cachedAggregateRootId = $aggregateRootId;
}
}
|
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(public readonly string $name, public readonly int $version = 0)
+ public function __construct(public readonly string $name, public readonly int $version = -1)
{
}
}
|
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(public readonly string $name, public readonly int $version = 0)
+ public function __construct(public readonly string $name, public readonly int $version = 1)
{
}
}
|
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;
}
}
|