Skip to content

Commit 9f56637

Browse files
committed
Added cs testing script to composer.json
1 parent 2e58de7 commit 9f56637

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,12 @@
2828
"psr-4": {
2929
"Polymorphine\\Headers\\Tests\\": "tests/"
3030
}
31+
},
32+
"scripts": {
33+
"test-cs": [
34+
"vendor/bin/php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
35+
"vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src",
36+
"vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/CodeSamples/* tests"
37+
]
3138
}
3239
}

0 commit comments

Comments
 (0)