Pinq\Tests\Integration\Traversable\JoinTest::testJoinOnEqualityProducesCorrectResult PHP Метод

testJoinOnEqualityProducesCorrectResult() публичный Метод

public testJoinOnEqualityProducesCorrectResult ( Pinq\ITraversable $traversable, array $data )
$traversable Pinq\ITraversable
$data array
    public function testJoinOnEqualityProducesCorrectResult(\Pinq\ITraversable $traversable, array $data)
    {
        $traversable = $traversable->join([1, 2, 3, '4', '5'])->onEquality(function ($outer) {
            return $outer;
        }, function ($inner) {
            return $inner;
        })->to(function ($outer, $inner) {
            return $outer . '-' . $inner;
        });
        $this->assertMatchesValues($traversable, ['1-1', '2-2', '3-3']);
    }