Skip to content

Commit

Permalink
disable buffer check on "testing" environment
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 14, 2020
1 parent 8939ea9 commit 1a570e4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/Config/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
*/

Events::on('pre_system', function () {
while (\ob_get_level() > 0)
if (ENVIRONMENT !== 'testing')
{
\ob_end_flush();
}
while (\ob_get_level() > 0)
{
\ob_end_flush();
}

\ob_start(function ($buffer) {
return $buffer;
});
\ob_start(function ($buffer) {
return $buffer;
});
}

/*
* --------------------------------------------------------------------
Expand Down

0 comments on commit 1a570e4

Please sign in to comment.