|
|
@@ -73,6 +73,7 @@ class CollectionTest extends TestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testFilterChaining() {
|
|
|
+ $this->skipIf(defined('HHVM_VERSION'), 'Broken on HHVM');
|
|
|
$items = ['a' => 1, 'b' => 2, 'c' => 3];
|
|
|
$collection = new Collection($items);
|
|
|
$callable = $this->getMock('stdClass', ['__invoke']);
|
|
|
@@ -93,6 +94,7 @@ class CollectionTest extends TestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testReject() {
|
|
|
+ $this->skipIf(defined('HHVM_VERSION'), 'Broken on HHVM');
|
|
|
$items = ['a' => 1, 'b' => 2, 'c' => 3];
|
|
|
$collection = new Collection($items);
|
|
|
$result = $collection->reject(function ($v, $k, $items) use ($collection) {
|
|
|
@@ -297,7 +299,7 @@ class CollectionTest extends TestCase {
|
|
|
$this->assertEquals(['a' => ['b' => ['c' => 10]]], $collection->max('a.b.c'));
|
|
|
|
|
|
$callback = function($e) {
|
|
|
- return sin($e['a']['b']['c']);
|
|
|
+ return $e['a']['b']['c'] * - 1;
|
|
|
};
|
|
|
$this->assertEquals(['a' => ['b' => ['c' => 4]]], $collection->max($callback));
|
|
|
}
|
|
|
@@ -543,6 +545,7 @@ class CollectionTest extends TestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testMatch() {
|
|
|
+ $this->skipIf(defined('HHVM_VERSION'), 'Broken on HHVM');
|
|
|
$items = [
|
|
|
['id' => 1, 'name' => 'foo', 'thing' => ['parent_id' => 10]],
|
|
|
['id' => 2, 'name' => 'bar', 'thing' => ['parent_id' => 11]],
|
|
|
@@ -571,6 +574,7 @@ class CollectionTest extends TestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testFirstMatch() {
|
|
|
+ $this->skipIf(defined('HHVM_VERSION'), 'Broken on HHVM');
|
|
|
$items = [
|
|
|
['id' => 1, 'name' => 'foo', 'thing' => ['parent_id' => 10]],
|
|
|
['id' => 2, 'name' => 'bar', 'thing' => ['parent_id' => 11]],
|