summaryrefslogtreecommitdiff
path: root/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/RemoteReporterTest.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/Reporter/RemoteReporterTest.php
parent45a9ff0c88cbd33892ff16ab837e9059937d656e (diff)
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/RemoteReporterTest.php')
-rw-r--r--vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/RemoteReporterTest.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/RemoteReporterTest.php b/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/RemoteReporterTest.php
deleted file mode 100644
index 0b85f06d0..000000000
--- a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/RemoteReporterTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-namespace Jaeger\Tests\Reporter;
-
-use Jaeger\Reporter\RemoteReporter;
-use Jaeger\Sender\UdpSender;
-use Jaeger\Span;
-use PHPUnit\Framework\TestCase;
-
-class RemoteReporterTest extends TestCase
-{
- /** @var RemoteReporter */
- private $reporter;
-
- /** @var UdpSender|\PHPUnit\Framework\MockObject\MockObject */
- private $transport;
-
- /**
- * {@inheritdoc}
- */
- public function setUp(): void
- {
- $this->transport = $this->createMock(UdpSender::class);
- $this->reporter = new RemoteReporter($this->transport);
- }
-
- /** @test */
- public function shouldReportSpan()
- {
- /** @var Span|\PHPUnit\Framework\MockObject\MockObject $span */
- $span = $this->createMock(Span::class);
-
- $this->transport->expects($this->once())->method('append')->with($span);
-
- $this->reporter->reportSpan($span);
- }
-
- /** @test */
- public function shouldCloseReporter()
- {
- $this->transport->expects($this->once())->method('flush');
- $this->transport->expects($this->once())->method('close');
-
- $this->reporter->close();
- }
-}