/** * Test for global aggregation toArray() method. * * @param GlobalAggregation $aggregation * @param array $expectedResult * * @dataProvider getToArrayData */ public function testToArray($aggregation, $expectedResult) { $this->assertEquals($expectedResult, $aggregation->toArray()); }