/**
  * @dataProvider errorRequestsProvider
  */
 public function testGetErrorRequests(array $logs, $expected)
 {
     $this->logAdapter->expects($this->once())->method('getLogs')->willReturn($logs);
     $this->requestFormatter->expects($this->atMost(count($logs)))->method('format');
     $this->responseFormatter->expects($this->atMost(count($logs)))->method('format');
     $response = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\Response')->getMock();
     $request = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\Request')->getMock();
     $this->dataCollector->collect($request, $response);
     $this->assertCount($expected, $this->dataCollector->getErrorRequests());
 }