Correct unit test failures

This commit is contained in:
Robert 2024-06-28 10:25:07 -04:00
parent 89e07e811a
commit c9eb03423f
2 changed files with 5 additions and 2 deletions

View File

@ -575,7 +575,7 @@ class SSH2Test extends PhpseclibFunctionalTestCase
$this->assertSame(0, $ssh->getOpenChannelCount()); $this->assertSame(0, $ssh->getOpenChannelCount());
} }
public function testKeepAlive(): void public function testKeepAlive()
{ {
$ssh = $this->getSSH2(); $ssh = $this->getSSH2();
$username = $this->getEnv('SSH_USERNAME'); $username = $this->getEnv('SSH_USERNAME');

View File

@ -221,7 +221,10 @@ class SSH2UnitTest extends PhpseclibTestCase
$this->assertEquals(20, $ssh->getTimeout()); $this->assertEquals(20, $ssh->getTimeout());
} }
public function testGetStreamTimeout(): void /**
* @requires PHPUnit < 10
*/
public function testGetStreamTimeout()
{ {
// no curTimeout, no keepAlive // no curTimeout, no keepAlive
$ssh = $this->createSSHMock(); $ssh = $this->createSSHMock();