Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 851 Bytes

CONTRIBUTING.md

File metadata and controls

32 lines (22 loc) · 851 Bytes

Running Unit Tests

This library uses phpunit for automated tests. phpunit is installed by default via Composer.

To run checks:

$ ./vendor/bin/phpunit

Running Coding Standards Checks

This component uses php-cs-fixer for coding standards checks, and provides configuration for our selected checks. php-cs-fixer is installed by default via Composer.

To run checks only:

$ ./vendor/bin/php-cs-fixer fix . -v --diff --dry-run

To have php-cs-fixer attempt to fix problems for you, omit the --dry-run flag:

$ ./vendor/bin/php-cs-fixer fix . -v --diff

If you allow php-cs-fixer to fix CS issues, please re-run the tests to ensure they pass, and make sure you add and commit the changes after verification.