Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 962 Bytes

CONTRIBUTING.md

File metadata and controls

39 lines (28 loc) · 962 Bytes

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

How to run the tests:

  • First install the dependencies
composer install
  • Then you are ready to run the tests
vendor/bin/phpunit -c tests/phpunit.xml

To check the code standard run:

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