Test coverage #155
Annotations
16 errors and 10 warnings
PHP 8.1 PHPUnit ^10.0
Process completed with exit code 1.
|
PHP 8.2 PHPUnit ^10.0
The job was canceled because "_8_1__10_0" failed.
|
PHP 8.2 PHPUnit ^10.0
Process completed with exit code 1.
|
PHP 8.3 PHPUnit ^9.0
The job was canceled because "_8_1__10_0" failed.
|
PHP 8.3 PHPUnit ^9.0
Process completed with exit code 1.
|
PHP 8.3 PHPUnit ^11.0
The job was canceled because "_8_1__10_0" failed.
|
PHP 8.3 PHPUnit ^11.0
Process completed with exit code 1.
|
PHP 8.1 PHPUnit ^9.0
The job was canceled because "_8_1__10_0" failed.
|
PHP 8.1 PHPUnit ^9.0
The operation was canceled.
|
PHP 8.3 PHPUnit ^10.0
The job was canceled because "_8_1__10_0" failed.
|
PHP 8.3 PHPUnit ^10.0
The operation was canceled.
|
PHP 8.2 PHPUnit ^11.0
The job was canceled because "_8_1__10_0" failed.
|
PHP 8.2 PHPUnit ^11.0
The operation was canceled.
|
PHP 8.2 PHPUnit ^9.0
The job was canceled because "_8_1__10_0" failed.
|
PHP 8.2 PHPUnit ^9.0
The operation was canceled.
|
Check
Process completed with exit code 1.
|
Check:
src/CallableFake.php#L79
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function assertCalledIndex(callable $callback, $indexes): self
{
- $this->assertCalled($callback);
+
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
|
Check:
src/CallableFake.php#L85
Escaped Mutant for Mutator "UnwrapArrayIntersect":
--- Original
+++ New
@@ @@
$this->assertCalled($callback);
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
- $matches = array_intersect($expectedIndexes, $actualIndexes);
+ $matches = $expectedIndexes;
Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
return $this;
}
|
Check:
src/CallableFake.php#L85
Escaped Mutant for Mutator "UnwrapArrayIntersect":
--- Original
+++ New
@@ @@
$this->assertCalled($callback);
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
- $matches = array_intersect($expectedIndexes, $actualIndexes);
+ $matches = $actualIndexes;
Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
return $this;
}
|
Check:
src/CallableFake.php#L87
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
- Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
+ Assert::assertSame(count($matches), count($expectedIndexes), implode(', ', $actualIndexes) . 'The callable was not called in the expected order. Found at index: ' . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
return $this;
}
public function assertTimesInvoked(int $count): self
|
Check:
src/CallableFake.php#L87
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
- Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
+ Assert::assertSame(count($matches), count($expectedIndexes), implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
return $this;
}
public function assertTimesInvoked(int $count): self
|
Check:
src/CallableFake.php#L87
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
- Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
+ Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
return $this;
}
public function assertTimesInvoked(int $count): self
|
Check:
src/CallableFake.php#L87
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
- Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
+ Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . '. Expected to be found at index: ' . implode(', ', $actualIndexes) . implode(', ', $expectedIndexes));
return $this;
}
public function assertTimesInvoked(int $count): self
|
Check:
src/CallableFake.php#L87
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
- Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
+ Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . implode(', ', $expectedIndexes));
return $this;
}
public function assertTimesInvoked(int $count): self
|
Check:
src/CallableFake.php#L87
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
- Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
+ Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . implode(', ', $expectedIndexes) . '. Expected to be found at index: ');
return $this;
}
public function assertTimesInvoked(int $count): self
|
Check:
src/CallableFake.php#L87
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$expectedIndexes = (array) $indexes;
$actualIndexes = array_keys($this->called($callback));
$matches = array_intersect($expectedIndexes, $actualIndexes);
- Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ' . implode(', ', $expectedIndexes));
+ Assert::assertSame(count($matches), count($expectedIndexes), 'The callable was not called in the expected order. Found at index: ' . implode(', ', $actualIndexes) . '. Expected to be found at index: ');
return $this;
}
public function assertTimesInvoked(int $count): self
|