MDL-42733 behat: Removing the restriction of an started output to handle the PHP errors

This commit is contained in:
David Monllao
2013-11-21 14:35:43 +08:00
parent 2b10fa0433
commit bf752eb38b
-6
View File
@@ -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()) {