8f3646a9c9 | ||
---|---|---|
.. | ||
Jaeger | ||
README.md | ||
php-test.sh |
README.md
Jaeger Bindings for PHP OpenTracing API: Unit Tests
Welcome to the Jaeger Testing Suite.
This folder includes all the unit tests that test Jaeger components, ensuring that you enjoy a bug free library.
Current PHP Support
version | status |
---|---|
7.0 | ✔ |
7.1 | ✔ |
7.2 | ✔ |
Getting Started
This testing suite uses Travis CI for each run. Every commit pushed to this repository will queue a build into the continuous integration service and will run all tests to ensure that everything is going well and the project is stable.
The testing suite can be run on your own machine. The main dependency is PHPUnit which can be installed using Composer:
# run this command from project root
$ composer install
Then run the tests by calling command from the terminal as follows:
$ composer test
Run Tests for Supported Versions
There is also an ability to run tests for different PHP versions. To achieve this we offer use docker-based approach:
$ docker run --rm -it -v $(pwd):/usr/app php:7.0 ./usr/app/tests/php-test.sh
$ docker run --rm -it -v $(pwd):/usr/app php:7.1 ./usr/app/tests/php-test.sh
$ docker run --rm -it -v $(pwd):/usr/app php:7.2 ./usr/app/tests/php-test.sh