- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- First install the dependencies
composer install
- Then you are ready to run the tests
vendor/bin/phpunit -c tests/phpunit.xml
The code will be checked against the the PSR-2 code standard. It will also be checked with PHP-CS-Fixer
vendor/bin/phpcs --standard=PSR2 lib
vendor/bin/phpcs --standard=PSR2 tests
vendor/bin/php-cs-fixer fix -v --dry-run tests
You can also automatically fix code standards by running:
vendor/bin/php-cs-fixer fix lib tests