Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit ab25207

Browse files
committed
Added HHVM 3.18 as a test target.
1 parent 6da7252 commit ab25207

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ matrix:
2525
sudo: required
2626
dist: trusty
2727
group: edge
28-
- php: hhvm-3.15
28+
- php: hhvm-3.18
29+
sudo: required
30+
dist: trusty
31+
group: edge
32+
- php: hhvm-3.18
2933
sudo: required
3034
dist: trusty
3135
group: edge

test/bin/hhvm renamed to test/bin/hhvm-3.12

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ docker run -it --rm \
33
-v "${PWD}:/usr/src/phony" \
44
-w /usr/src/phony \
55
-e "PATH=vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
6-
hhvm/hhvm "$@"
6+
hhvm/hhvm:3.12-lts-latest "$@"

test/bin/hhvm-3.15

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
docker run -it --rm \
3+
-v "${PWD}:/usr/src/phony" \
4+
-w /usr/src/phony \
5+
-e "PATH=vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
6+
hhvm/hhvm:3.15-lts-latest "$@"

test/bin/hhvm-3.18

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
docker run -it --rm \
3+
-v "${PWD}:/usr/src/phony" \
4+
-w /usr/src/phony \
5+
-e "PATH=vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
6+
hhvm/hhvm:3.18-lts-latest "$@"

test/fixture/feature-detector/features.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"Can use a constant as a parameter default value": ["parameter.default.constant", "5.4.6.x", "999", [], "3.13.x", "999", []],
3030
"Can override a method that uses self as a type hint": ["parameter.type.self.override", "5.4.1.x", "999", [], "0.x", "999", []],
3131
"Can use variadic parameters": ["parameter.variadic", "5.6.x", "999", [], "3.3.x", "999", []],
32-
"Can use by-reference variadic parameters": ["parameter.variadic.reference", "5.6.x", "999", [], "999", "0.x", []],
32+
"Can use by-reference variadic parameters": ["parameter.variadic.reference", "5.6.x", "999", [], "3.17.x", "999", []],
3333
"Can use type hints with variadic parameters": ["parameter.variadic.type", "5.6.x", "999", [], "999", "0.x", []],
3434
"Can use scalar type hints": ["parameter.hint.scalar", "7.x", "999", [], "3.11.x", "999", []],
3535
"Language keywords can be used as method names": ["parser.relaxed-keywords", "7.x", "999", [], "999", "0.x", []],

test/suite/FunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ function () {
128128

129129
public function testVariadicParameterMockingWithType()
130130
{
131-
if (!$this->featureDetector->isSupported('parameter.variadic')) {
132-
$this->markTestSkipped('Requires variadic parameters.');
131+
if (!$this->featureDetector->isSupported('parameter.variadic.type')) {
132+
$this->markTestSkipped('Requires type-hinted variadic parameters.');
133133
}
134134
if ($this->featureDetector->isSupported('runtime.hhvm')) {
135135
$this->markTestSkipped('Broken because of https://github.com/facebook/hhvm/issues/5762');

0 commit comments

Comments
 (0)