public function testClearingStats() { $this->repository->expects($this->once())->method('deleteByEnvironment')->with($this->equalTo($this->container->getParameter('kernel.environment'))); $this->report->clearStats(); }