Skip to content

Commit

Permalink
MDL-54561 phpunit: only search with first 3 chars
Browse files Browse the repository at this point in the history
Windows uses only the first three characters of prefix in
tempnam(), so only use first 3 chars to find if error
is logged
  • Loading branch information
Rajesh Taneja committed May 13, 2016
1 parent e4b5a06 commit 790bf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lti/tests/service_exception_handler_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function test_handle_log() {
ob_end_clean();

$this->assertTrue(is_dir($CFG->dataroot.'/temp/mod_lti'));
$files = glob($CFG->dataroot.'/temp/mod_lti/mod_lti_response*');
$files = glob($CFG->dataroot.'/temp/mod_lti/mod*');
$this->assertEquals(1, count($files));
}
}

0 comments on commit 790bf3a

Please sign in to comment.