- Guide
- Playground
- GitHub
-
Ecosystem
Help
Resource Lists
Recent Posts
- What's new in Infection 0.26.0
- What's new in Infection 0.25.0
- What's new in Infection 0.24.0
- What's new in Infection 0.23.0
- What's new in Infection 0.21.0
- What's new in Infection 0.20.0
- What's new in Infection 0.19.0
- What's new in Infection 0.18.0
- What's new in Infection 0.17.0
- What's new in Infection 0.16.0
What's new in Infection 0.15.0
Sep 29, 2019
Release: https://github.com/infection/infection/releases/tag/0.15.0
BC Breaks
We changed a path for JUnit
report expected by Infection when existing coverage is provided.
Before:
build/coverage/phpunit.junit.xml
After:
build/coverage/junit.xml
New features and enhancements
Codeception Test Framework Support
We are happy to announce Codeception + Infection integration, one of the most upvoted feature request.
Let’s bring a new level of tests quality for Codeception users!
Log mutation results directly to stdout
/stderr
The next version of Infection will have an ability to log mutation results directly to stdout/stderr, which is useful for CI. Thank you @duncan3dc pic.twitter.com/Mc21KInMy2
— Infection PHP (@infection_php) November 12, 2019
PHP 7.4
compatibility
Infection is now fully compatible with PHP 7.4.
New Symfony versions compatibility
Infection is now fully compatible with Symfony 4.4 and Symfony 5.0.
Allow to enable pcov
with --initial-tests-php-options
Now, you can enable pcov
for Initial Tests run in Infection to generate coverage:
$ infection --initial-tests-php-options='-d extension=pcov.so' |
See /guide/command-line-options.html#initial-tests-php-options
Version number under ASCII banner
Little, but useful enhancement: we’ve added a version number right under Infection ASCII banner (like Composer does it):
$ infection --threads=4 |
New Mutators
clone
removal
$now = new \DateTime(); |
This mutator helps to find unnecessary or untested cloning.
UnwrapStrReplace
This mutator takes the third argument of str_replace()
function and assigns it to the variable.
- $a = str_replace('Afternoon', 'Evening' ,'Good Afternoon!'); |
Enjoy!