From da2e4ca85f862cdb635ac8a7ab626f7d90d30115 Mon Sep 17 00:00:00 2001 From: Tony Rasmussen Date: Sun, 7 Oct 2012 06:47:51 -0700 Subject: [PATCH] Lowercase boolean --- src/Behat/MinkExtension/Context/MinkContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 77de9a6..e4a80a3 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -473,9 +473,9 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface */ public function saveScreenshot($filename = null, $filepath = null) { - // Under Cygwin, uniqid with more_entropy must be set to TRUE. + // Under Cygwin, uniqid with more_entropy must be set to true. // No effect in other environments. - $filename = $filename ?: sprintf('%s_%s_%s.%s', $this->getMinkParameter('browser_name'), date('c'), uniqid('', TRUE), 'png'); + $filename = $filename ?: sprintf('%s_%s_%s.%s', $this->getMinkParameter('browser_name'), date('c'), uniqid('', true), 'png'); $filepath = $filepath ? $filepath : ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(); file_put_contents($filepath . '/' . $filename, $this->getSession()->getDriver()->getScreenshot()); }