Skip to content

Commit

Permalink
[+]: try to fix tests for PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Moelleken committed Jan 25, 2016
1 parent ffa8035 commit b10dcd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ArrayyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public function testCanGetIntersectionOfTwoArrays()
$a = ['foo', 'bar'];
$b = ['bar', 'baz'];
$array = A::create($a)->intersection($b);
self::assertEquals(['bar'], $array->getArray());
self::assertEquals(array('bar'), $array->getArray());
}

public function testIntersectsBooleanFlag()
Expand Down Expand Up @@ -745,15 +745,15 @@ public function testInvoke()
{
$array = array(' foo ', ' bar ');
$arrayy = A::create($array)->invoke('trim');
self::assertEquals(['foo', 'bar'], $arrayy->getArray());
self::assertEquals(array('foo', 'bar'), $arrayy->getArray());

$array = array('_____foo', '____bar ');
$arrayy = A::create($array)->invoke('trim', ' _');
self::assertEquals(['foo', 'bar'], $arrayy->getArray());
self::assertEquals(array('foo', 'bar'), $arrayy->getArray());

$array = array('_____foo ', '__bar ');
$arrayy = A::create($array)->invoke('trim', ['_', ' ']);
self::assertEquals(['foo ', '__bar'], $arrayy->getArray());
self::assertEquals(array('foo ', '__bar'), $arrayy->getArray());
}

public function testReject()
Expand Down

0 comments on commit b10dcd9

Please sign in to comment.