diff options
Diffstat (limited to 'vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php')
-rw-r--r-- | vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php b/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php deleted file mode 100644 index 998061088..000000000 --- a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - -namespace Jaeger\Tests; - -use Jaeger\SpanContext; -use PHPUnit\Framework\TestCase; - -class SpanContextTest extends TestCase -{ - public function testIsDebugIdContainerOnly() - { - $ctx = new SpanContext(null, null, null, null, null, 'value1'); - $this->assertTrue($ctx->isDebugIdContainerOnly()); - $this->assertEquals($ctx->getDebugId(), 'value1'); - - $ctx = new SpanContext(1, 2, 3, 1); - $this->assertFalse($ctx->isDebugIdContainerOnly()); - } - - /** - * @dataProvider contextDataProvider - */ - public function testBaggageInit($traceId, $spanId, $parentId, $flags, $baggage, $expected) - { - $ctx = new SpanContext($traceId, $spanId, $parentId, $flags, $baggage); - $this->assertEquals($expected, $ctx->getBaggage()); - } - - public function contextDataProvider() - { - return [ - [null, null, null, null, [], []], - [null, null, null, null, null, []], - [null, null, null, null, ['key' => 'val'], ['key' => 'val']], - ]; - } -} |