Skip to content

Commit 07f80c3

Browse files
author
gabbydgab
committed
added phpbench as QA check
1 parent df98563 commit 07f80c3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

composer.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,24 @@
2929
},
3030
"autoload-dev": {
3131
"psr-4": {
32-
"ZendTest\\ArrayUtils\\": "test/"
32+
"ZendTest\\ArrayUtils\\": "test/",
33+
"ZendBench\\ArrayUtils\\": "benchmark/"
3334
}
3435
},
3536
"scripts": {
3637
"check": [
3738
"@license-check",
3839
"@cs-check",
3940
"@cpd",
40-
"@test"
41+
"@test",
42+
"@benchmark"
4143
],
4244
"cpd": "phpcpd --exclude=/vendor,/build --fuzzy src test",
4345
"cs-check": "phpcs --colors",
4446
"cs-fix": "phpcbf --colors",
45-
"license-check": "docheader check src/ test/",
47+
"license-check": "docheader check src/ test/ benchmark/",
4648
"test": "phpunit --colors=always",
49+
"benchmark": "phpbench run --report=aggregate",
4750
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
4851
"upload-coverage": "coveralls -v"
4952
}

phpcs.xml

+1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
<!-- Paths to check -->
66
<file>src</file>
77
<file>test</file>
8+
<file>benchmark</file>
89
</ruleset>

0 commit comments

Comments
 (0)