Skip to content

Commit 74b9244

Browse files
committed
phpunit expect warning
1 parent d2608ca commit 74b9244

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit/UnitySiteTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ public static function SSHKeyProvider()
2727
public function testTestValidSSHKey(bool $expected, string $key)
2828
{
2929
$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+
$this->expectWarning();
37+
}
3038
$this->assertEquals($expected, $SITE->testValidSSHKey($key));
3139
}
3240

0 commit comments

Comments
 (0)