Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.4 KB

File metadata and controls

67 lines (43 loc) · 1.4 KB

Testing

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

Tool references:

Automated refactoring (Rector)

Run Rector to apply automated code refactoring.

composer run rector

Coding standards (ECS)

Run Easy Coding Standard (ECS) and apply fixes.

composer run ecs

Dependency definition check

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

composer run check-dependencies

Static analysis (PHPStan)

Run static analysis.

composer run static

Unit tests (Codeception)

Run the full test suite.

composer run tests

Passing extra arguments

Composer scripts support forwarding additional arguments using --.

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

composer run tests -- --filter="MySpecificTest"

Example: run PHPStan with a different memory limit:

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