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 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;