Skip to content

Commit cf36214

Browse files
committed
Install phpunit with composer
1 parent 9e39e04 commit cf36214

File tree

5 files changed

+1773
-32
lines changed

5 files changed

+1773
-32
lines changed

.github/workflows/phpunit.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ jobs:
3838
- name: Install dependencies
3939
run: composer install --prefer-dist --no-progress --optimize-autoloader
4040

41-
# Download PHPUnit
42-
- name: Download PHPUnit
43-
run: wget -O phpunit.phar https://phar.phpunit.de/phpunit-9.phar && chmod +x phpunit.phar
44-
4541
# Setup cache directory
4642
- name: Setup cache directory
4743
run: |
@@ -63,4 +59,4 @@ jobs:
6359
- name: Run legacy test suite
6460
env:
6561
DATABASE_DSN: mysql://root:root@localhost:3306/jeedom_test
66-
run: ./phpunit.phar --coverage-text --colors=never --testsuite "Legacy tests"
62+
run: vendor/bin/phpunit --coverage-text --colors=never --testsuite "Legacy tests"

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ tmp/*
4848
.phpstan.cache
4949
phpstan.phar
5050

51-
phpunit.phar
5251
.phpunit.result.cache

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"platform": {
1616
"php": "7.4"
1717
}
18+
},
19+
"require-dev": {
20+
"phpunit/phpunit": "^9.6"
1821
}
1922
}

0 commit comments

Comments
 (0)