Skip to content

Commit 75852ad

Browse files
committed
README: change documentation about how to run the tests
1 parent d14a0d1 commit 75852ad

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,11 @@ local npm project in a clone a project
227227
git https://github.com/ovh/php-ovh.git
228228
cd php-ovh
229229
php composer.phar install
230+
vendor/bin/phpunit tests/ApiTest.php
230231

231-
Edit **phpunit.xml** file with your credentials to pass functionals tests. Then,
232-
you can run directly unit and functionals tests with [phing](http://www.phing.info/).
232+
To run functionals tests, you need to provide valid API credentials, that you can provide them via environment:
233233

234-
vendor/bin/phing test
235-
236-
To skip functionals and run unit tests only, you can use the `only.units` option :
237-
238-
vendor/bin/phing test -Donly.units=true
234+
APP_KEY=xxx APP_SECRET=xxx CONSUMER=xxx ENDPOINT=xxx vendor/bin/phpunit tests/ApiFunctionalTest.php
239235

240236
Supported APIs
241237
--------------

0 commit comments

Comments
 (0)