Skip to content

Domi202/template

Repository files navigation

Build Status Scrutinizer Code Quality Code Coverage

PHP Composer Package Template

This repository provides a skeleton for a Composer package.

Usage

Run composer create-project kreemers/template

Pre-Installed and configured features

Composer Scripts

composer run test

Runs the tests in your development environment (CodeSniffer -> Psalm -> PHPUnit)

composer run fix

Runs the CodeFixer to automatically fix code style issues

composer run infection

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

composer run ci

Is for running the tests in a CI Environment (e.g. Travis CI) and create coverage reports

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages