/**
  *
  */
 public function testHandleRequestUnreadableFile()
 {
     // Create an unreadable file
     $this->staticWebServer->setWebroot(sys_get_temp_dir());
     $filename = 'unreadable';
     $filePath = $this->staticWebServer->getWebroot() . '/' . $filename;
     @unlink($filePath);
     touch($filePath);
     chmod($filePath, 00);
     // Mock a response
     /* @var \PHPUnit_Framework_MockObject_MockObject|Response $response */
     $response = $this->getMockBuilder(Response::class)->setConstructorArgs([$this->getMockedConnection()])->setMethods(['writeHead', 'end'])->getMock();
     $response->expects($this->once())->method('writeHead')->with(403, ['Content-Type' => 'text/plain']);
     $this->staticWebServer->handleRequest(new Request('GET', '/' . $filename), $response);
 }