MDL-48302 behat: Make sure to clear php file cache
authorRajesh Taneja <rajesh@moodle.com>
Thu, 20 Nov 2014 07:39:39 +0000 (15:39 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Fri, 21 Nov 2014 02:22:56 +0000 (10:22 +0800)
lib/testing/classes/util.php

index 520cb77..4fdd3c7 100644 (file)
@@ -715,6 +715,9 @@ abstract class testing_util {
         // Do not delete automatically installed files.
         self::skip_original_data_files($childclassname);
 
+        // Clear file status cache, before checking file_exists.
+        clearstatcache();
+
         // Clean up the dataroot folder.
         $handle = opendir(self::get_dataroot());
         while (false !== ($item = readdir($handle))) {