Skip to content

Commit a1854c4

Browse files
authored
Merge pull request #194 from middlebrain/travis_build_with_7.x
Add php 7.x to the test matrix
2 parents 72f49e5 + 1f44e5b commit a1854c4

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ env:
77

88
php:
99
- 5.6
10+
- 7.0
11+
- 7.1
12+
- 7.2
1013

1114
before_script:
1215
- composer self-update

src/PHPCR/Shell/Test/CliContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function beforeScenario()
3939

4040
$this->rootPath = realpath(__DIR__.'/../../../..');
4141
$dir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'phpcr-shell'.DIRECTORY_SEPARATOR.
42-
md5(microtime() * rand(0, 10000));
42+
md5(microtime(true) * rand(0, 10000));
4343
$this->fixturesDir = realpath(__DIR__.'/../../../../features/fixtures/');
4444

4545
$this->workingDir = $dir;

src/PHPCR/Shell/Test/ContextBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract protected function createTester();
5050
public function beforeScenario()
5151
{
5252
$dir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'phpcr-shell'.DIRECTORY_SEPARATOR.
53-
md5(microtime() * rand(0, 10000));
53+
md5(microtime(true) * rand(0, 10000));
5454

5555
$this->workingDir = $dir;
5656

0 commit comments

Comments
 (0)