Example #1
0
 public function testConstructorSetsHashOption()
 {
     $rsa = new RSA(array('hashAlgorithm' => 'md2'));
     $this->assertEquals(OPENSSL_ALGO_MD2, $rsa->getHashAlgorithm());
 }