Skip to content

Commit f54947d

Browse files
committed
unit test sample using mockery
0 parents  commit f54947d

12 files changed

+1697
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor
2+
/reports
3+
coverage.clover
4+
.idea/

composer.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "harry/sample-01",
3+
"authors": [
4+
{
5+
"name": "Harry Sitohang",
6+
"email": "[email protected]"
7+
}
8+
],
9+
"require": {
10+
"php": ">=7.0"
11+
},
12+
"require-dev": {
13+
"mockery/mockery": "^0.9",
14+
"phpunit/phpunit": "~5.7"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"Sample\\": "src/"
19+
}
20+
},
21+
"autoload-dev": {
22+
"psr-4": {
23+
"Sample\\Tests\\": "tests/"
24+
}
25+
},
26+
"scripts": {
27+
"test": "./vendor/bin/phpunit -c phpunit.xml --coverage-text --coverage-clover=coverage.clover --debug"
28+
}
29+
}

0 commit comments

Comments
 (0)