Skip to content

Commit 7d73664

Browse files
committed
add phpunit/phpcs dependencies + config
1 parent 1106b6d commit 7d73664

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
"Prestashop": "Protechstudio\\PrestashopWebService\\PrestashopWebServiceFacade"
2323
}
2424
}
25-
}
26-
25+
},
26+
"require-dev": {
27+
"squizlabs/php_codesniffer": "^3.2",
28+
"phpunit/phpunit": "^6.5"
29+
},
30+
"scripts": {
31+
"test": "vendor/bin/phpunit",
32+
"cs": "vendor/bin/phpcs src/*"
33+
}
2734
}

phpcs.xml.dist

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="LaravelPrestashopWebservice">
3+
4+
<description>A basic coding standard.</description>
5+
6+
<exclude-pattern>vendor/*</exclude-pattern>
7+
8+
<rule ref="PSR2" />
9+
10+
</ruleset>
File renamed without changes.

0 commit comments

Comments
 (0)