Skip to content

Commit 3040178

Browse files
authored
Refactor health scan and introduce phpunit (#129)
* Refactor health scan and introduce phpunit * Execute phpunit in github action
1 parent b154dc1 commit 3040178

File tree

11 files changed

+1832
-17
lines changed

11 files changed

+1832
-17
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ jobs:
4242

4343
- name: Run PHPStan
4444
run: vendor/bin/phpstan
45+
46+
- name: Run PHPUnit
47+
run: vendor/bin/phpunit

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
composer.phar
2+
.phpunit.cache/
23

34
.idea/
4-
vendor/
5+
vendor/

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"Gared\\EtherScan\\": "src/"
88
}
99
},
10+
"autoload-dev": {
11+
"psr-4" : {
12+
"Gared\\EtherScan\\Tests\\": "tests/"
13+
}
14+
},
1015
"require": {
1116
"php": ">=8.3",
1217
"ext-json": "*",
@@ -15,6 +20,7 @@
1520
"elephantio/elephant.io": "^4.8"
1621
},
1722
"require-dev": {
18-
"phpstan/phpstan": "^2.0"
23+
"phpstan/phpstan": "^2.0",
24+
"phpunit/phpunit": "^12.5"
1925
}
2026
}

0 commit comments

Comments
 (0)