Merge branch 'w12_MDL-44635_m26_ajaxlogs' of git://github.com/skodak/moodle into MOODLE_26_STABLE

This commit is contained in:
Marina Glancy 2014-03-17 14:29:42 +08:00
commit b28a4887f5

View file

@ -26,6 +26,22 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
class core_ajaxlib_testcase extends advanced_testcase { class core_ajaxlib_testcase extends advanced_testcase {
/** @var string Original error log */
protected $oldlog;
protected function setUp() {
global $CFG;
parent::setUp();
// Discard error logs.
$this->oldlog = ini_get('error_log');
ini_set('error_log', "$CFG->dataroot/testlog.log");
}
protected function tearDown() {
ini_set('error_log', $this->oldlog);
parent::tearDown();
}
protected function helper_test_clean_output() { protected function helper_test_clean_output() {
$this->resetAfterTest(); $this->resetAfterTest();