RSA: syntax error in unit tests

This commit is contained in:
terrafrost 2014-09-09 00:43:28 -05:00
parent e092733808
commit f6bd3542b3

View File

@ -278,7 +278,7 @@ Ao8eayMp6FcvNucIpUndo1X8dKMv3Y26ZQIDAQAB
$rsa->setPublicKey(); $rsa->setPublicKey();
$newkey = $rsa->getPublicKey(CRYPT_RSA_PUBLIC_FORMAT_XML); $newkey = $rsa->getPublicKey(CRYPT_RSA_PUBLIC_FORMAT_XML);
$this->assertSame(preg_replace('#\s\', '', $key), preg_replace('#\s\', '', $newkey)); $this->assertSame(preg_replace('#\s#', '', $key), preg_replace('#\s#', '', $newkey));
} }
/** /**
@ -299,6 +299,6 @@ JWrQdxx/WNN+ABG426rgYYbeGcIlWLZCw6Bx/1HtN5ef6nVEoiGNChYKIRB4QFOi
$rsa->setPublicKey(); $rsa->setPublicKey();
$newkey = $rsa->getPublicKey(); $newkey = $rsa->getPublicKey();
$this->assertSame(preg_replace('#\s\', '', $key), preg_replace('#\s\', '', $newkey)); $this->assertSame(preg_replace('#\s#', '', $key), preg_replace('#\s#', '', $newkey));
} }
} }