File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed
tests/OpenTelemetry/Formatters Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments