Skip to content

Commit 52977f2

Browse files
author
Gianluca Arbezzano
committed
Remove trait tests if not supported by php's version
1 parent bcfde4b commit 52977f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ php:
1111
before_script:
1212
- composer self-update
1313
- composer install
14+
- if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ]; then export COMPOSER_PROCESS_TIMEOUT=900; fi
1415

1516
script:
1617
- vendor/bin/phpunit

tests/Acceptance/TraitsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ final class TraitsTest extends AcceptanceTestCase
99
*/
1010
public function itCreatesTagForTopLevelTrait()
1111
{
12-
if (version_compare('5.4.0', PHP_VERSION, 'gte')) {
12+
if (version_compare('5.4.0', PHP_VERSION, '>')) {
1313
$this->markTestSkipped('Traits were not introduced until 5.4');
1414
}
1515

@@ -102,7 +102,7 @@ private function privateMethod()
102102
*/
103103
public function itAddsNamespacesToTraitTags()
104104
{
105-
if (version_compare('5.4.0', PHP_VERSION, 'gte')) {
105+
if (version_compare('5.4.0', PHP_VERSION, '>')) {
106106
$this->markTestSkipped('Traits were not introduced until 5.4');
107107
}
108108

0 commit comments

Comments
 (0)