Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 862 Bytes

CONTRIBUTING.md

File metadata and controls

32 lines (22 loc) · 862 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 --config-file=.php_cs

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

$ ./vendor/bin/php-cs-fixer fix . -v --diff --config-file=.php_cs

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.