public function testAggregate() { $benchmark = $this->getMock('\\Fabfuel\\Prophiler\\Benchmark\\BenchmarkInterface'); $aggregator = $this->getMock('\\Fabfuel\\Prophiler\\AggregatorInterface'); $aggregator->expects($this->once())->method('aggregate')->with($benchmark); $this->profiler->addAggregator($aggregator); $this->profiler->aggregate($benchmark); }