public function __construct($filename, $contents)
 {
     parent::__construct($filename, $contents, array('Content-Type' => 'text/plain'));
 }
 public function __construct($filename, $contents)
 {
     parent::__construct($filename, $contents, array('Content-Type' => 'application/zip'));
 }
 public function __construct($filename, $contents)
 {
     parent::__construct($filename, $contents, array('Content-Type' => 'image/gif'));
 }
 public function testTooLongRead()
 {
     $response = new FileResponse(FILES_DIR . '/response.txt');
     error_reporting(E_ERROR);
     $this->setExpectedException('RuntimeException');
     $response->open();
     $response->outputBytes(0, 100);
 }