MDL-56354 unittests: Put debug messages in the failure notice.

This commit is contained in:
Russell Smith
2016-10-26 09:27:01 +11:00
parent 3d13576463
commit ca99df58e2
3 changed files with 42 additions and 29 deletions
+10
View File
@@ -71,6 +71,16 @@ class core_phpunit_advanced_testcase extends advanced_testcase {
set_debugging(DEBUG_DEVELOPER);
}
/**
* @test
*
* Annotations are a valid PHPUnit method for running tests. Debugging needs to support them.
*/
public function debugging_called_with_annotation() {
debugging('pokus', DEBUG_MINIMAL);
$this->assertDebuggingCalled('pokus', DEBUG_MINIMAL);
}
public function test_set_user() {
global $USER, $DB, $SESSION;