Skip to content

Commit

Permalink
MDL-42733 behat: Removing the restriction of an started output to han…
Browse files Browse the repository at this point in the history
…dle the PHP errors
  • Loading branch information
David Monllao committed Nov 21, 2013
1 parent b3f2d75 commit 7bf1651
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/behat/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ function behat_error($errorcode, $text = '') {
* @return bool
*/
function behat_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
global $OUTPUT;

// Only after something has been writen.
if (!$OUTPUT->has_started()) {
return false;
}

// If is preceded by an @ we don't show it.
if (!error_reporting()) {
Expand Down

0 comments on commit 7bf1651

Please sign in to comment.