Skip to content

Commit

Permalink
First commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Apr 23, 2021
1 parent 518f5cc commit 45156ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Base/BitrixableTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ protected function setUp(): void
protected function tearDown(): void
{
parent::tearDown();
ob_get_clean(); // Битриксовые штучки-дрючки.

// Битриксовые штучки-дрючки с буфером.
while (ob_get_level()) {
ob_end_clean();
}

if ($GLOBALS['APPLICATION']) {
$GLOBALS['APPLICATION']->RestartBuffer();
}
}
}

0 comments on commit 45156ee

Please sign in to comment.