From 045284cf6a369dd1d31e0a61215253471c833455 Mon Sep 17 00:00:00 2001 From: Ronald Appelfelder Date: Mon, 27 Aug 2018 14:55:30 +0200 Subject: [PATCH 1/2] Fix behat runtime errors by using php 7.x --- src/PHPCR/Shell/Test/CliContext.php | 2 +- src/PHPCR/Shell/Test/ContextBase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PHPCR/Shell/Test/CliContext.php b/src/PHPCR/Shell/Test/CliContext.php index ddb8bd0b..5c0b1923 100644 --- a/src/PHPCR/Shell/Test/CliContext.php +++ b/src/PHPCR/Shell/Test/CliContext.php @@ -39,7 +39,7 @@ public function beforeScenario() $this->rootPath = realpath(__DIR__.'/../../../..'); $dir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'phpcr-shell'.DIRECTORY_SEPARATOR. - md5(microtime() * rand(0, 10000)); + md5(microtime(true) * rand(0, 10000)); $this->fixturesDir = realpath(__DIR__.'/../../../../features/fixtures/'); $this->workingDir = $dir; diff --git a/src/PHPCR/Shell/Test/ContextBase.php b/src/PHPCR/Shell/Test/ContextBase.php index dc172f28..8385fe86 100644 --- a/src/PHPCR/Shell/Test/ContextBase.php +++ b/src/PHPCR/Shell/Test/ContextBase.php @@ -50,7 +50,7 @@ abstract protected function createTester(); public function beforeScenario() { $dir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'phpcr-shell'.DIRECTORY_SEPARATOR. - md5(microtime() * rand(0, 10000)); + md5(microtime(true) * rand(0, 10000)); $this->workingDir = $dir; From 1f44e5b6da45b40befe73be7257e54e755585851 Mon Sep 17 00:00:00 2001 From: Ronald Appelfelder Date: Mon, 27 Aug 2018 15:03:00 +0200 Subject: [PATCH 2/2] Travis: build with 7.x --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index cdc77ec6..b0e7f8f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,9 @@ env: php: - 5.6 + - 7.0 + - 7.1 + - 7.2 before_script: - composer self-update