blob: e6a66cb8adec5ec43601adaeacd9dbe2dbacba40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
namespace Jaeger\Tests\Reporter;
use Jaeger\Reporter\NullReporter;
use Jaeger\Span;
use PHPUnit\Framework\TestCase;
class NullReporterTest extends TestCase
{
/**
* Nothing to test because NullReporter doing nothing.
*
* @test
*/
public function shouldReportSpan()
{
/** @var \Jaeger\Span|\PHPUnit\Framework\MockObject\MockObject $span */
$span = $this->createMock(Span::class);
$reporter = new NullReporter();
$reporter->reportSpan($span);
$reporter->close();
// Only needed to avoid PhpUnit message: "This test did not perform any assertions"
$this->assertTrue(true);
}
}
|