Skip to content

Commit 6736fce

Browse files
committed
Switch to PHPUnit provided by Composer.
1 parent dccaf56 commit 6736fce

File tree

3 files changed

+1338
-2
lines changed

3 files changed

+1338
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ One the possible ways to become familiar with the library is to check the unit t
1616

1717
To run the unit tests use the following command:
1818

19-
`REMOTE_HOST=your-plesk-host.dom REMOTE_PASSWORD=password phpunit`
19+
`REMOTE_HOST=your-plesk-host.dom REMOTE_PASSWORD=password ./vendor/bin/phpunit`
2020

2121
To use custom port one can provide a URL (e.g. for Docker container):
2222

23-
`REMOTE_URL=https://your-plesk-host.dom:port REMOTE_PASSWORD=password phpunit`
23+
`REMOTE_URL=https://your-plesk-host.dom:port REMOTE_PASSWORD=password ./vendor/bin/phpunit`
2424

2525
## Using Grunt for Continuous Testing
2626

composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
"require": {
1313
"php": ">=5.3.0"
1414
},
15+
"require-dev": {
16+
"phpunit/phpunit": "5.5.*"
17+
},
18+
"scripts": {
19+
"test": "phpunit"
20+
},
1521
"autoload": {
1622
"psr-4": {
1723
"PleskX\\": "src/PleskX/"

0 commit comments

Comments
 (0)