Skip to content

Commit 3654ef5

Browse files
committed
Skip hasType()/getType() methods test for old versions of PHP
1 parent deb91d4 commit 3654ef5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ReflectionParameterTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ public function testCoverAllMethods()
180180

181181
public function testGetTypeMethod()
182182
{
183+
if (PHP_VERSION_ID < 70000) {
184+
$this->markTestSkipped('Test available only for PHP7.0 and newer');
185+
}
186+
183187
foreach ($this->parsedRefFile->getFileNamespaces() as $fileNamespace) {
184188
foreach ($fileNamespace->getFunctions() as $refFunction) {
185189
$functionName = $refFunction->getName();

0 commit comments

Comments
 (0)