Skip to content

Commit a54ee52

Browse files
committed
test: use ob_get_level()
1 parent 1dfa4fe commit a54ee52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/CodeIgniterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function tearDown(): void
5353
{
5454
parent::tearDown();
5555

56-
if (count(ob_list_handlers()) > 1) {
56+
if (ob_get_level() > 1) {
5757
ob_end_clean();
5858
}
5959

@@ -799,7 +799,7 @@ public function testPageCacheWithCacheQueryString(
799799

800800
$this->assertSame($string, $output);
801801

802-
if (count(ob_list_handlers()) > 1) {
802+
if (ob_get_level() > 1) {
803803
ob_end_clean();
804804
}
805805
}

0 commit comments

Comments
 (0)