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