Skip to content

Commit 895b226

Browse files
committed
chore: remove unused code
1 parent e92e0ef commit 895b226

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

tests/OpenTelemetry/Formatters/AllFormattersIntegrationTest.php

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -146,43 +146,6 @@ public function testAllFormattersCanBeInstantiated(): void
146146
}
147147
}
148148

149-
#[Depends('testAllFormattersCanBeInstantiated')]
150-
public function testAllFormattersContextCanBeSetAndRetrieved(): void
151-
{
152-
foreach (self::$formatters as $formatterClass) {
153-
try {
154-
$formatter = FormatterTestHelper::assertFormatterCanBeInstantiated(
155-
$formatterClass,
156-
IAuditStrategy::EVENT_ENTITY_CREATION
157-
);
158-
159-
$this->assertNotNull($formatter);
160-
} catch (\Exception $e) {
161-
$this->fail("Failed to validate {$formatterClass}: " . $e->getMessage());
162-
}
163-
}
164-
}
165-
166-
//// ANDY
167-
168-
private function _testAllFormattersCanBeInstantiated(): void
169-
{
170-
foreach ($this->discoverFormatters() as $formatterClass) {
171-
try {
172-
$formatter = FormatterTestHelper::assertFormatterCanBeInstantiated(
173-
$formatterClass,
174-
IAuditStrategy::EVENT_ENTITY_CREATION
175-
);
176-
177-
FormatterTestHelper::assertFormatterHasSetContextMethod($formatter);
178-
$formatter->setContext($this->defaultContext);
179-
$this->assertNotNull($formatter);
180-
} catch (\Exception $e) {
181-
$this->fail("Failed to validate {$formatterClass}: " . $e->getMessage());
182-
}
183-
}
184-
}
185-
186149
#[Depends('testAllFormatterConstructorParametersRequired')]
187150
public function testAllFormattersHandleAllEventTypes(): void
188151
{

0 commit comments

Comments
 (0)