mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-24 07:38:26 +00:00
RSA: syntax error in unit tests
This commit is contained in:
parent
e092733808
commit
f6bd3542b3
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user