public function testGetPdfEncryptionObjOnePub() { $pubkeys = array(array('c' => __DIR__ . '/data/cert.pem', 'p' => array('print'))); $enc = new \Com\Tecnick\Pdf\Encrypt\Encrypt(true, md5('file_id'), 1, array('print'), 'alpha', 'beta', $pubkeys); $pon = 122; $result = $enc->getPdfEncryptionObj($pon); $this->assertTrue(strlen($result) > 100); }