summaryrefslogtreecommitdiff
path: root/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/CompositeReporterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/CompositeReporterTest.php')
-rw-r--r--vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/CompositeReporterTest.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/CompositeReporterTest.php b/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/CompositeReporterTest.php
deleted file mode 100644
index ef95ebfe7..000000000
--- a/vendor/jonahgeorge/jaeger-client-php/tests/Jaeger/Reporter/CompositeReporterTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-namespace Jaeger\Tests\Reporter;
-
-use Jaeger\Reporter\CompositeReporter;
-use Jaeger\Reporter\ReporterInterface;
-use Jaeger\Span;
-use PHPUnit\Framework\TestCase;
-
-class CompositeReporterTest extends TestCase
-{
- /** @var CompositeReporter */
- private $reporter;
-
- /** @var ReporterInterface|\PHPUnit\Framework\MockObject\MockObject */
- private $childReporter1;
-
- /** @var ReporterInterface|\PHPUnit\Framework\MockObject\MockObject */
- private $childReporter2;
-
- /**
- * {@inheritdoc}
- */
- public function setUp(): void
- {
- $this->childReporter1 = $this->createMock(ReporterInterface::class);
- $this->childReporter2 = $this->createMock(ReporterInterface::class);
-
- $this->reporter = new CompositeReporter($this->childReporter1, $this->childReporter2);
- }
-
- /** @test */
- public function shouldReportSpan()
- {
- /** @var \Jaeger\Span|\PHPUnit\Framework\MockObject\MockObject $span */
- $span = $this->createMock(Span::class);
-
- $this->childReporter1->expects($this->once())->method('reportSpan')->with($span);
- $this->childReporter2->expects($this->once())->method('reportSpan')->with($span);
-
- $this->reporter->reportSpan($span);
- }
-
- /** @test */
- public function shouldCloseReporter()
- {
- $this->childReporter1->expects($this->once())->method('close');
- $this->childReporter2->expects($this->once())->method('close');
-
- $this->reporter->close();
- }
-}