Skip to content

Commit

Permalink
Change tmp directory name generation logic
Browse files Browse the repository at this point in the history
The old one throws notices on PHP 7.
  • Loading branch information
soullivaneuh committed Oct 12, 2017
1 parent 9cb58e0 commit 1b4ed4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function cleanTestFolders()
public function prepareScenario()
{
$dir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'behat-web-api' . DIRECTORY_SEPARATOR .
md5(microtime() * rand(0, 10000));
md5(uniqid(rand(0, 10000)));

mkdir($dir . '/features/bootstrap', 0777, true);

Expand Down

0 comments on commit 1b4ed4b

Please sign in to comment.