From 790bf3ace073abcaa43e5586ce9ebf728d642bc2 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Fri, 13 May 2016 13:16:31 +0800 Subject: [PATCH] MDL-54561 phpunit: only search with first 3 chars Windows uses only the first three characters of prefix in tempnam(), so only use first 3 chars to find if error is logged --- mod/lti/tests/service_exception_handler_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/lti/tests/service_exception_handler_test.php b/mod/lti/tests/service_exception_handler_test.php index cd7270f0aa0..50e257f7ee0 100644 --- a/mod/lti/tests/service_exception_handler_test.php +++ b/mod/lti/tests/service_exception_handler_test.php @@ -79,7 +79,7 @@ class mod_lti_service_exception_handler_testcase extends advanced_testcase { 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)); } } \ No newline at end of file