mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'w12_MDL-44339_m27_testdebug' of git://github.com/skodak/moodle
This commit is contained in:
commit
3b85de7b99
1 changed files with 4 additions and 1 deletions
|
@ -82,8 +82,11 @@ abstract class advanced_testcase extends PHPUnit_Framework_TestCase {
|
||||||
$DB = phpunit_util::get_global_backup('DB');
|
$DB = phpunit_util::get_global_backup('DB');
|
||||||
|
|
||||||
// Deal with any debugging messages.
|
// Deal with any debugging messages.
|
||||||
phpunit_util::display_debugging_messages();
|
$debugerror = phpunit_util::display_debugging_messages();
|
||||||
phpunit_util::reset_debugging();
|
phpunit_util::reset_debugging();
|
||||||
|
if ($debugerror) {
|
||||||
|
trigger_error('Unenxpected debugging() call detected.', E_USER_NOTICE);
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// cleanup after failed expectation
|
// cleanup after failed expectation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue