Remove php 5.2 from travis and check for HHVM

This commit is contained in:
R. Eric Wheeler 2016-07-20 13:20:16 -07:00
parent 46c9502177
commit f2aa0982ee
2 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,5 @@
language: php
php:
- '5.2'
- '5.3'
- '5.4'
- '5.5'
@ -10,7 +9,6 @@ php:
- nightly
matrix:
allow_failures:
- php: 5.2
- php: hhvm
- php: nightly

View File

@ -276,7 +276,7 @@ class ArrayObjectArrayTest extends \PHPUnit_Framework_TestCase
define('ARRAY_FILTER_USE_KEY', 2);
}
if (PHP_VERSION_ID >= 50600) {
if (PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION')) {
$this->assertSame(array_filter($this->workingMultiArray, $array_filter, ARRAY_FILTER_USE_BOTH), $this->arrayObjectArrayMulti->array_filter($array_filter, ARRAY_FILTER_USE_BOTH));
$this->assertSame(array_filter($this->workingMultiArray, $array_filter, ARRAY_FILTER_USE_KEY), $this->arrayObjectArrayMulti->array_filter($array_filter, ARRAY_FILTER_USE_KEY));
}