1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00

Update contributing.md

This commit is contained in:
Eugene Kirillov 2018-03-16 15:42:32 +02:00
parent 4a742beb59
commit bbd083ffc9
2 changed files with 19 additions and 1 deletions

View File

@ -28,3 +28,17 @@ opening braces for classes and methods must appear on the same line as
the declaration: the declaration:
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
To apply amphp code standards you can run `php-cs-fixer` with following composer command:
```bash
composer code-style
```
## Running the tests
Run the test suite from amphp root directory:
```bash
composer test
```

View File

@ -69,5 +69,9 @@
"platform": { "platform": {
"php": "7.0.0" "php": "7.0.0"
} }
},
"scripts": {
"test": "@php -dzend.assertions=1 -dassert.exception=1 ./vendor/bin/phpunit",
"code-style": "@php ./vendor/bin/php-cs-fixer fix"
} }
} }