-
Notifications
You must be signed in to change notification settings - Fork 9
Running tests
preslav-anev edited this page Jun 12, 2017
·
16 revisions
If you want to run the tests in tests directory in the root of the PHP-SDK, there a few steps you need to take.
- You need to have Composer installed.
- Then run 'composer install' command in the root directory of the PHP-SDK, where the composer.json is located. This will create the vendor folder and in it you will have all of the packages listed in composer.json, currently phpdocumentor, phpunit with their respective versions.
composer install
- You need the phpunit framework in order to execute the tests. If you want to execute the integration tests, you can do that with the following command, that will execute only the tests found in "path-to-php-sdk/sdkphp/tests/Kount/Ris/integration":
phpunit --configuration phpunit.integration.xml
If you want to execute other tests you can use the other phpunit configuration file found in the root directory.
phpunit --configuration phpunit.xml
The two commands above are to be executed like that only when phpunit is added to your system PATH and it's available globally on your machine.
If you don't want to bother with doing that, here is how to run tests without having phpunit globally accessable:
vendor/bin/phpunit --configuration phpunit.integration.xml
Getting Started
Using Our SDK
Advanced documentation