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