phalApiCryptRSAPri2Pub = new PhalApi_Crypt_RSA_Pri2Pub(); } protected function tearDown() { } public function testHere() { $keyG = new PhalApi_Crypt_RSA_KeyGenerator(); $prikey = $keyG->getPriKey(); $pubkey = $keyG->getPubkey(); $data = 'something important here ...'; $encryptData = $this->phalApiCryptRSAPri2Pub->encrypt($data, $prikey); $decryptData = $this->phalApiCryptRSAPri2Pub->decrypt($encryptData, $pubkey); $this->assertEquals($data, $decryptData); } }