示例#1
0
 /**
  * Broken Archive Test
  * @group ultimate
  **/
 function test_unzipBogusArchive()
 {
     $hd = new HandsetDetection\HD4($this->ultimateConfig);
     $hd->setTimeout(500);
     file_put_contents('/tmp/test.zip', 'testy mc testery fish fish fish');
     $result = $hd->installArchive('/tmp/test.zip');
     $data = $hd->getReply();
     $this->assertFalse($result);
     $this->assertEquals(299, $data['status']);
 }