mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
Merge branch 'w12_MDL-44635_m26_ajaxlogs' of git://github.com/skodak/moodle into MOODLE_26_STABLE
This commit is contained in:
commit
b28a4887f5
1 changed files with 16 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue