This repository provides a skeleton for a Composer package.
Run composer create-project kreemers/template
- PHPUnit https://phpunit.de (with Scrutinizer Code Coverage)
- Psalm https://github.com/vimeo/psalm (Static Code Analysis)
- PHP_CodeSniffer https://github.com/squizlabs/PHP_CodeSniffer (with Doctrine Standard)
- Travis CI https://travis-ci.org
- Scrutinizer https://scrutinizer-ci.com
- Infection https://github.com/infection/infection (Mutation Testing Framework)
Runs the tests in your development environment (CodeSniffer -> Psalm -> PHPUnit)
Runs the CodeFixer to automatically fix code style issues
Runs mutation tests
In a nutshell, it
- runs the test suite to see if all tests pass
- mutates the source code with a set of predefined mutators (mutation operators)
- for each Mutant (modified code with one change) it runs the tests that cover changed line
- analyzes whether the tests start to fail
- collects the results of killed, escaped Mutants, errors and timeouts
see: https://infection.github.io/guide/#What-is-Infection
Is for running the tests in a CI Environment (e.g. Travis CI) and create coverage reports