Add PoC for testing utilities: AggregateTestCase, SubscriberUtilities #1069
Annotations
1 error and 6 warnings
Infection
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Infection:
src/Test/AggregateAlreadySet.php#L11
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
public function __construct()
{
- parent::__construct('Aggregate already set. You should only return the aggregate if there is no given present.');
+
}
}
|
Infection:
src/Test/NoAggregateCreated.php#L11
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
public function __construct()
{
- parent::__construct('No aggregate set and no aggregate returned. Please provide given events or create the aggregate with the first action.');
+
}
}
|
Infection:
src/Test/SubscriberUtilities.php#L34
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
foreach ($subscriberAccessors as $subscriberAccessor) {
$setupMethod = $subscriberAccessor->setupMethod();
if (!$setupMethod) {
- continue;
+ break;
}
$setupMethod();
}
|
Infection:
src/Test/SubscriberUtilities.php#L66
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
foreach ($subscriberAccessors as $subscriberAccessor) {
$teardownMethod = $subscriberAccessor->teardownMethod();
if (!$teardownMethod) {
- continue;
+ break;
}
$teardownMethod();
}
|
Infection:
src/Test/SubscriberUtilities.php#L89
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
*/
private function createSubscriberAccessors(array $subscribers) : iterable
{
- return $this->subscriberAccessors ??= (new MetadataSubscriberAccessorRepository($subscribers))->all();
+ return $this->subscriberAccessors = (new MetadataSubscriberAccessorRepository($subscribers))->all();
}
}
|
Loading