Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 1.62 KB

File metadata and controls

78 lines (50 loc) · 1.62 KB

Testing

This package provides a consistent set of Composer scripts for local validation.

Tool references:

Coding standards (ECS)

Run Easy Coding Standard (ECS) and apply fixes.

composer run ecs

Shared configuration

This repository ships shared configuration files under config/ for reuse. Consumer repositories should define their own wrapper ecs.php and set project paths there.

Dependency definition check

Verify that runtime dependencies are correctly declared in composer.json.

composer run check-dependencies

Mutation testing (Infection)

Run mutation testing.

composer run mutation

Run mutation testing with static analysis enabled.

composer run mutation-static

Static analysis (PHPStan)

Run static analysis.

composer run static

Unit tests (PHPUnit)

Run the full test suite.

composer run tests

Passing extra arguments

Composer scripts support forwarding additional arguments using --.

Example: run a specific PHPUnit test or filter by name.

composer run tests -- --filter SvgTest

Example: run PHPStan with a different memory limit:

composer run static -- --memory-limit=512M