public function testEncryptModZeroPub() { $pubkeys = array(array('c' => __DIR__ . '/data/cert.pem', 'p' => array('print'))); $enc = new \Com\Tecnick\Pdf\Encrypt\Encrypt(true, md5('file_id'), 0, array('print'), 'alpha', 'beta', $pubkeys); $result = $enc->encrypt(1, 'alpha'); $this->assertEquals(5, strlen($result)); }