Pinq\Tests\Integration\Traversable\Aggregates\AggregateTest::testThatAggregateOperatesCorrectlyWithStrings PHP Method

testThatAggregateOperatesCorrectlyWithStrings() public method

public testThatAggregateOperatesCorrectlyWithStrings ( Pinq\ITraversable $traversable, array $data )
$traversable Pinq\ITraversable
$data array
    public function testThatAggregateOperatesCorrectlyWithStrings(\Pinq\ITraversable $traversable, array $data)
    {
        $aggregator = function ($a, $b) {
            return $a . $b;
        };
        $this->assertSame(array_reduce($data, $aggregator, ''), $traversable->aggregate($aggregator));
    }