Skip to content

Commit dd69381

Browse files
committed
"Update composer script for testing
Added new script 'test' to composer.json file. This script combines two existing scripts, 'phpcs' and 'phpunit', making it more efficient to run both scripts for testing. Also, 'phpcs' script has been updated with '--basepath=.' argument to set the base directory for relative paths."
1 parent 8b86909 commit dd69381

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
},
1616
"scripts": {
1717
"phpcbf" : "phpcbf .",
18-
"phpcs" : "phpcs .",
19-
"phpunit" : "phpunit"
18+
"phpcs" : "phpcs . --basepath=.",
19+
"phpunit" : "phpunit",
20+
"test": [
21+
"@phpcs",
22+
"@phpunit"
23+
]
2024
},
2125
"config": {
2226
"allow-plugins": {

0 commit comments

Comments
 (0)