We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2608ca commit 74b9244Copy full SHA for 74b9244
test/unit/UnitySiteTest.php
@@ -27,6 +27,14 @@ public static function SSHKeyProvider()
27
public function testTestValidSSHKey(bool $expected, string $key)
28
{
29
$SITE = new UnitySite();
30
+ // https://github.com/phpseclib/phpseclib/issues/2077
31
+ if (preg_match("/^[0-9]+$/", $key)) {
32
+ $this->expectWarning();
33
+ }
34
+ // https://github.com/phpseclib/phpseclib/issues/2076
35
+ if (!is_null(@json_decode($key))) {
36
37
38
$this->assertEquals($expected, $SITE->testValidSSHKey($key));
39
}
40
0 commit comments