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

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

public testThatJoinWithDefaultDoesNotSupplyDefaultElementWhenThereAreMatchingInnerElements ( Pinq\ITraversable $traversable, array $data )
$traversable Pinq\ITraversable
$data array
    public function testThatJoinWithDefaultDoesNotSupplyDefaultElementWhenThereAreMatchingInnerElements(\Pinq\ITraversable $traversable, array $data)
    {
        $traversable = $traversable->join([1])->on(function () {
            return true;
        })->withDefault(null, null)->to(function ($outer, $inner, $outerKey, $innerKey) {
            return $inner;
        });
        $this->assertMatches($traversable, empty($data) ? [] : array_fill(0, count($data), 1));
    }