diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 17:12:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 21:13:39 +0300 |
commit | cdd7ad020e165fe680703b6d3319b908b682fb7a (patch) | |
tree | b51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /vendor/opentracing/opentracing/tests/OpenTracing/ReferenceTest.php | |
parent | 45a9ff0c88cbd33892ff16ab837e9059937d656e (diff) |
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/opentracing/opentracing/tests/OpenTracing/ReferenceTest.php')
-rw-r--r-- | vendor/opentracing/opentracing/tests/OpenTracing/ReferenceTest.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/vendor/opentracing/opentracing/tests/OpenTracing/ReferenceTest.php b/vendor/opentracing/opentracing/tests/OpenTracing/ReferenceTest.php deleted file mode 100644 index cb971a20c..000000000 --- a/vendor/opentracing/opentracing/tests/OpenTracing/ReferenceTest.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace OpenTracing\Tests; - -use TypeError; -use PHPUnit\Framework\TestCase; -use OpenTracing\Reference; -use OpenTracing\NoopSpanContext; -use OpenTracing\InvalidReferenceArgumentException; - -/** - * @covers Reference - */ -final class ReferenceTest extends TestCase -{ - const REFERENCE_TYPE = 'ref_type'; - - public function testCreateAReferenceFailsOnInvalidContext() - { - $context = 'invalid_context'; - - $this->expectException(TypeError::class); - new Reference('child_of', $context); - } - - public function testCreateAReferenceFailsOnEmptyType() - { - $context = new NoopSpanContext(); - - $this->expectException(InvalidReferenceArgumentException::class); - $this->expectExceptionMessage('Reference type can not be an empty string'); - new Reference('', $context); - } - - public function testAReferenceCanBeCreatedAsACustomType() - { - $context = new NoopSpanContext(); - $reference = new Reference(self::REFERENCE_TYPE, $context); - - $this->assertSame($context, $reference->getSpanContext()); - $this->assertTrue($reference->isType(self::REFERENCE_TYPE)); - } -} |