Skip to content

Add support for infection. #37

@Danack

Description

@Danack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions