-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(mutation): add mutation tests (#2)
Configure Infection and add mutation tests.
- Loading branch information
1 parent
6b9cebe
commit 9d9203e
Showing
62 changed files
with
1,186 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ | |
|
||
# PHP Unit | ||
/.phpunit.result.cache | ||
|
||
# Infection | ||
/infection.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"source": { | ||
"directories": [ | ||
"src" | ||
], | ||
"excludes": [ | ||
"Events", | ||
"Exceptions" | ||
] | ||
}, | ||
"timeout": 5, | ||
"logs": { | ||
"text": "build/infection/infection.log", | ||
"summary": "build/infection/summary.log", | ||
"perMutator": "build/infection/per-mutator.md" | ||
}, | ||
"mutators": { | ||
"global-ignore": [ | ||
"Donatorsky\\XmlTemplate\\Reader\\XmlTemplateReader::deinitializeParser" | ||
], | ||
"global-ignoreSourceCodeByRegex": [ | ||
"\\$this->deinitializeParser\\(\\).*", | ||
"xml_parse\\(\\$this->xmlParser, '', true\\).*", | ||
"xml_parser_free\\(\\$this->xmlParser\\).*", | ||
"xml_parser_set_option\\(\\$this->xmlParser,.*", | ||
"xml_set_character_data_handler\\(\\$this->xmlParser,.*", | ||
"xml_set_element_handler\\(\\$this->xmlParser,.*", | ||
"xml_set_object\\(\\$this->xmlParser, \\$this\\).*" | ||
], | ||
"@default": true, | ||
"ArrayItemRemoval": { | ||
"ignoreSourceCodeByRegex": [ | ||
"'attributesRules'\\s*=>\\s*\\[\\]," | ||
] | ||
} | ||
}, | ||
"testFramework": "phpunit", | ||
"testFrameworkOptions": "--do-not-cache-result", | ||
"initialTestsPhpOptions": "-d xdebug.mode=coverage" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.