mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-23 23:28:32 +00:00
RSA: syntax error in unit tests
This commit is contained in:
parent
e092733808
commit
f6bd3542b3
@ -278,7 +278,7 @@ Ao8eayMp6FcvNucIpUndo1X8dKMv3Y26ZQIDAQAB
|
||||
$rsa->setPublicKey();
|
||||
$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();
|
||||
$newkey = $rsa->getPublicKey();
|
||||
|
||||
$this->assertSame(preg_replace('#\s\', '', $key), preg_replace('#\s\', '', $newkey));
|
||||
$this->assertSame(preg_replace('#\s#', '', $key), preg_replace('#\s#', '', $newkey));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user