MDL-43439 behat: Dir date without - separators
authorDavid Monllao <davidm@moodle.com>
Wed, 15 Jan 2014 01:17:44 +0000 (09:17 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 15 Jan 2014 01:17:44 +0000 (09:17 +0800)
lib/tests/behat/behat_hooks.php

index a4c76ac..5bf603d 100644 (file)
@@ -321,7 +321,7 @@ class behat_hooks extends behat_base {
 
         // All the run screenshots in the same parent dir.
         if (!$screenshotsdirname = self::get_run_screenshots_dir()) {
-            $screenshotsdirname = self::$screenshotsdirname = date('Y-m-d_Hi');
+            $screenshotsdirname = self::$screenshotsdirname = date('Ymd_Hi');
 
             $dir = $CFG->behat_screenshots_path . DIRECTORY_SEPARATOR . $screenshotsdirname;