Skip to content

Commit 9ec9707

Browse files
committed
Flesh out the Composer configuration
Clean up the `config` node, add `composer test` as an alias for PHPUnit, and add script descriptions.
1 parent 41d5064 commit 9ec9707

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

composer.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
"require-dev": {
2121
"phpunit/phpunit": ">=6.0"
2222
},
23-
"scripts": {
24-
"test-coverage": [
25-
"phpunit --coverage-html=tests/coverage"
26-
]
27-
},
2823
"autoload": {
2924
"psr-4": {
3025
"SteveGrunwell\\PHPUnit_Markup_Assertions\\": "src/"
@@ -34,5 +29,25 @@
3429
"psr-4": {
3530
"Tests\\": "tests/"
3631
}
32+
},
33+
"scripts": {
34+
"test": [
35+
"phpunit"
36+
],
37+
"test-coverage": [
38+
"phpunit --coverage-html=tests/coverage"
39+
]
40+
},
41+
"scripts-descriptions": {
42+
"test": "Run all test suites.",
43+
"test-coverage": "Generate code coverage reports in tests/coverage."
44+
},
45+
"config": {
46+
"preferred-install": "dist",
47+
"sort-packages": true,
48+
"optimize-autoloader": true,
49+
"platform": {
50+
"php": "7.2"
51+
}
3752
}
3853
}

0 commit comments

Comments
 (0)