Exemple #1
0
 /**
  * @depends testSign
  */
 public function testSignWriteError()
 {
     list($key, $password) = $this->getPrivateKey();
     mkdir('test.phar.pubkey');
     $this->crate->getPhar()->addFromString('test.php', '<?php $test = 1;');
     $this->setExpectedException('CmPayments\\Crate\\Exception\\FileException', 'failed to open stream');
     $this->crate->sign($key, $password);
 }