Skip to content

Commit cd32ef6

Browse files
committed
Fixed tests
1 parent ee72099 commit cd32ef6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Instrumentation/PDO/tests/Unit/SqlCommentPropagatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ class SqlCommentPropagatorTest extends TestCase
1111
{
1212
public function testIsPrependReturnsTrue()
1313
{
14-
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_CONTEXT_PROPAGATION_PREPEND'] = true;
14+
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_SQL_COMMENTER_PREPEND'] = true;
1515
$result = SqlCommentPropagator::isPrepend();
1616
$this->assertTrue($result);
1717
}
1818

1919
public function testIsPrependReturnsFalse()
2020
{
21-
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_CONTEXT_PROPAGATION_PREPEND'] = false;
21+
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_SQL_COMMENTER_PREPEND'] = false;
2222
$result = SqlCommentPropagator::isPrepend();
2323
$this->assertFalse($result);
2424
}
2525

2626
public function testInjectPrepend()
2727
{
28-
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_CONTEXT_PROPAGATION_PREPEND'] = true;
28+
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_SQL_COMMENTER_PREPEND'] = true;
2929
$comments = [
3030
'key1' => 'value1',
3131
'key2' => 'value2',
@@ -38,7 +38,7 @@ public function testInjectPrepend()
3838

3939
public function testInjectAppend()
4040
{
41-
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_CONTEXT_PROPAGATION_PREPEND'] = false;
41+
$_SERVER['OTEL_PHP_INSTRUMENTATION_PDO_SQL_COMMENTER_PREPEND'] = false;
4242
$comments = [
4343
'key1' => 'value1',
4444
'key2' => 'value2',

0 commit comments

Comments
 (0)