-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Example output is below. The failures are listed in the 'Escaped mutants' section of the infection-log.txt file. For the example below the failure would be file /projects/danack/github/params/lib/Params/Params.php on line 36 and the error type would be OneZeroInteger.
Escaped mutants:
================
1) /projects/danack/github/params/lib/Params/Params.php:36 [M] OneZeroInteger
--- Original
+++ New
@@ @@
{
foreach ($namedRules as $parameterName => $rules) {
// TODO - test for packed array?
- if (count($rules) === 0) {
+ if (count($rules) === 1) {
throw new RulesEmptyException();
}
$firstRule = $rules[0];
PHPUnit 8.1.2 by Sebastian Bergmann and contributors.
... 3 / 3 (100%)
Time: 29 ms, Memory: 4.00 MB
OK (3 tests, 13 assertions)
Timed Out mutants:
==================
Killed mutants:
===============
1) /projects/danack/github/params/lib/Params/Exception/ValidationException.php:29 [M] OneZeroInteger
alfredbez
Metadata
Metadata
Assignees
Labels
No labels