Exemple #1
0
 public function testCopyFailed()
 {
     if (defined('HHVM_VERSION')) {
         $this->markTestSkipped('This test results in a fatal error on HHVM');
     }
     $mock = Mockery::mock('ZipArchive');
     $mock->shouldReceive('open')->andReturn(true);
     $mock->shouldReceive('close')->andReturn(true);
     $mock->shouldReceive('getStream')->andReturn(false);
     $zip = new Zip('location', $mock);
     $this->assertFalse($zip->copy('old', 'new'));
 }