Ejemplo n.º 1
0
 /**
  * To check if we can give the user a file in the range they requested. i.e. if they reqeuested only bytes 'm - n", then only that much bytes must be provided.
  */
 public function testDownload()
 {
     $this->markTestSkipped('Cannot test this in command line context');
     $start = 0;
     $end = 26;
     $_SERVER["HTTP_RANGE"] = "bytes=" . $start . "-" . $end . ",1024-2048";
     $this->assertTrue(DownloadManager::download(__FILE__));
 }