Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1005 Bytes

CONTRIBUTING.md

File metadata and controls

38 lines (26 loc) · 1005 Bytes

Running Unit Tests

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

To run checks:

$ ./vendor/bin/phpunit

Most unit tests for providers require large testfiles. You can download them the following way:

$ ./bin/download-testfiles.sh

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.