diff --git a/.circleci/config.yml b/.circleci/config.yml index 82868b1..bf3eae8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,6 +46,11 @@ jobs: docker: - image: circleci/php:7.2-node + php73: + <<: *unit-config + docker: + - image: circleci/php:7.3-node + integration: docker: - image: circleci/php:7.2-node @@ -68,4 +73,5 @@ workflows: - php70 - php71 - php72 + - php73 - integration diff --git a/composer.json b/composer.json index be04ea2..72d27ad 100644 --- a/composer.json +++ b/composer.json @@ -9,10 +9,14 @@ "ext-sockets": "*" }, "require-dev": { - "phpunit/phpunit": "^5.0", + "phpunit/phpunit": "^5.0 || ^6.5", "squizlabs/php_codesniffer": "2.*", "guzzlehttp/guzzle": "~6.0" }, + "suggest": { + "ext-gmp": "It can handle the large numbers", + "ext-bcmath": "It can handle large integer numbers" + }, "license": "Apache-2.0", "authors": [ { @@ -26,6 +30,12 @@ "OpenCensus\\Trace\\Exporter\\": "src/" } }, + "autoload-dev": { + "psr-4": { + "OpenCensus\\Tests\\Unit\\Trace\\Exporter\\": "tests/unit/", + "OpenCensus\\Tests\\Integration\\Trace\\Exporter\\": "tests/integration/" + } + }, "scripts": { "post-dependencies-solving": "OpenCensus\\Trace\\Exporter\\Installer::checkPhpExtDependency" } diff --git a/tests/unit/Jaeger/SpanConverterBcmathTest.php b/tests/unit/Jaeger/SpanConverterBcmathTest.php index 75e234c..3251aeb 100644 --- a/tests/unit/Jaeger/SpanConverterBcmathTest.php +++ b/tests/unit/Jaeger/SpanConverterBcmathTest.php @@ -17,8 +17,6 @@ namespace OpenCensus\Tests\Unit\Trace\Exporter\Jaeger; -require_once __DIR__ . '/SpanConverterTest.php'; - use OpenCensus\Tests\Unit\Trace\Exporter\Jaeger\SpanConverterTest; use OpenCensus\Trace\Exporter\Jaeger\HexdecConverterBcMath; diff --git a/tests/unit/Jaeger/UDPClientTest.php b/tests/unit/Jaeger/UDPClientTest.php index 7f2b2eb..3b8f704 100644 --- a/tests/unit/Jaeger/UDPClientTest.php +++ b/tests/unit/Jaeger/UDPClientTest.php @@ -17,8 +17,6 @@ namespace OpenCensus\Trace\Exporter\Jaeger; -require_once 'src/Thrift/Types.php'; - use Jaeger\Thrift\Batch; use Jaeger\Thrift\Process; use Jaeger\Thrift\Span; diff --git a/tests/unit/JaegerExporterBcmathTest.php b/tests/unit/JaegerExporterBcmathTest.php index ea4451d..b91bdda 100644 --- a/tests/unit/JaegerExporterBcmathTest.php +++ b/tests/unit/JaegerExporterBcmathTest.php @@ -17,8 +17,6 @@ namespace OpenCensus\Tests\Unit\Trace\Exporter; -require_once __DIR__ . '/JaegerExporterTest.php'; - use OpenCensus\Tests\Unit\Trace\Exporter\JaegerExporterTest; use OpenCensus\Trace\Exporter\JaegerExporter; diff --git a/tests/unit/JaegerExporterTest.php b/tests/unit/JaegerExporterTest.php index 37bd27e..0e12138 100644 --- a/tests/unit/JaegerExporterTest.php +++ b/tests/unit/JaegerExporterTest.php @@ -17,8 +17,6 @@ namespace OpenCensus\Tests\Unit\Trace\Exporter; -require_once 'src/Thrift/Agent.php'; - use OpenCensus\Trace\Exporter\JaegerExporter; use OpenCensus\Trace\Annotation; use OpenCensus\Trace\MessageEvent;