summaryrefslogtreecommitdiff
path: root/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 17:12:29 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 21:13:39 +0300
commitcdd7ad020e165fe680703b6d3319b908b682fb7a (patch)
treeb51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php
parent45a9ff0c88cbd33892ff16ab837e9059937d656e (diff)
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php')
-rw-r--r--vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/SpanContextTest.php37
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']],
- ];
- }
-}