tracer = new NoopTracer(); } public function testShouldCreateNoopSpan(): void { $span = $this->tracer->createSpan( 'test' ); $this->assertInstanceOf( NoopSpan::class, $span ); $this->assertNull( $span->getContext()->getParentSpanId() ); } public function testShouldCreateNoopRootSpan(): void { $span = $this->tracer->createRootSpan( 'test' ); $this->assertInstanceOf( NoopSpan::class, $span ); $this->assertNull( $span->getContext()->getParentSpanId() ); } public function testShouldCreateNoopSpanWithParent(): void { $span = $this->tracer->createSpanWithParent( 'test', new SpanContext( '', '', null, '', false ) ); $this->assertInstanceOf( NoopSpan::class, $span ); $this->assertNull( $span->getContext()->getParentSpanId() ); } }