mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-22 05:51:20 +01:00
RSA: make unit tests perform string comparisons sans white space chars
This commit is contained in:
parent
c489852332
commit
e092733808
@ -278,7 +278,7 @@ Ao8eayMp6FcvNucIpUndo1X8dKMv3Y26ZQIDAQAB
|
||||
$rsa->setPublicKey();
|
||||
$newkey = $rsa->getPublicKey(CRYPT_RSA_PUBLIC_FORMAT_XML);
|
||||
|
||||
$this->assertSame($key, $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($key, $newkey);
|
||||
$this->assertSame(preg_replace('#\s\', '', $key), preg_replace('#\s\', '', $newkey));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user