Skip to content

Commit dc8061a

Browse files
committed
Added tests
1 parent 12e8f87 commit dc8061a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Propagation/ServiceName/tests/Unit/ServiceNamePropagatorTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,11 @@ public function test_extract_empty(): void
4949
$context = $this->serviceNamePropagator->extract($carrier);
5050
$this->assertSame(Context::getCurrent(), $context);
5151
}
52+
53+
public function test_no_extract(): void
54+
{
55+
$carrier = ['service.name' => 'foo-service'];
56+
$context = $this->serviceNamePropagator->extract($carrier);
57+
$this->assertSame(Context::getCurrent(), $context);
58+
}
5259
}

0 commit comments

Comments
 (0)