Skip to content

Commit

Permalink
Борьба с буфером Битрикс.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Apr 25, 2021
1 parent 81b4a26 commit 31d8ae0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Base/BitrixableTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,7 @@ protected function setupDatabaseData() : void
private function clearBitrixBuffer() : void
{
$output = $GLOBALS['APPLICATION']->EndBufferContentMan();

// Эксперимент.
// while (ob_get_level()) {
// ob_end_clean();
// }
//
// if ($GLOBALS['APPLICATION']) {
// $GLOBALS['APPLICATION']->RestartBuffer();
// }
echo $output;
}

/**
Expand Down Expand Up @@ -179,4 +171,4 @@ private function hasTrait(string $trait) : bool

return in_array($trait, $traits, true);
}
}
}

0 comments on commit 31d8ae0

Please sign in to comment.