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:
parent
4a742beb59
commit
bbd083ffc9
@ -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
|
||||||
|
```
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user