Example #1
0
 /**
  * @expectedException \Defuse\Crypto\Exception\IOException
  * @expectedExceptionMessage must be a resource
  */
 public function testNonResourceOutputEncrypt()
 {
     $resource = fopen('php://memory', 'wb');
     File::encryptResource($resource, 'not a resource', $this->key);
     fclose($resource);
 }