Skip to content

Commit 0e249b9

Browse files
committed
Add test script to run phpunit and phpcs
1 parent 46168ab commit 0e249b9

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Diff for: composer.json

+6
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@
2525
"require-dev": {
2626
"phpunit/phpunit": "^6.5",
2727
"squizlabs/php_codesniffer": "^3"
28+
},
29+
"scripts": {
30+
"test": [
31+
"phpunit",
32+
"phpcs"
33+
]
2834
}
2935
}

Diff for: phpcs.xml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Rakit validation coding standard">
3+
<description>Rakit validation coding standard</description>
4+
5+
<!-- display progress -->
6+
<arg value="p"/>
7+
<!-- use colors in output -->
8+
<arg name="colors"/>
9+
10+
<!-- inherit rules from: -->
11+
<rule ref="PSR2"/>
12+
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
13+
14+
<!-- Paths to check -->
15+
<file>src</file>
16+
<file>tests</file>
17+
</ruleset>

0 commit comments

Comments
 (0)