Skip to content

Commit 1ca8061

Browse files
committed
Refactor test case
1 parent 9592623 commit 1ca8061

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/Unit/PSR7WorkerTest.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@ public function testHttpWorkerIsAvailable(): void
2121
$psrFactory,
2222
);
2323

24-
ob_end_clean();
25-
2624
self::assertInstanceOf(HttpWorker::class, $psrWorker->getHttpWorker());
2725
}
26+
27+
protected function tearDown(): void
28+
{
29+
// Clean all extra output buffers
30+
$level = \ob_get_level();
31+
while (--$level > 0) {
32+
\ob_end_clean();
33+
}
34+
35+
parent::tearDown(); // TODO: Change the autogenerated stub
36+
}
2837
}

0 commit comments

Comments
 (0)