mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-24 11:05:30 +00:00
Tests/SFTP: just check to see that stat / lstat return an array
This commit is contained in:
parent
d1d415618a
commit
df65acb999
@ -433,10 +433,14 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
||||
public function testStatOnCWD($sftp)
|
||||
{
|
||||
$stat = $sftp->stat('.');
|
||||
$this->assertInternalType(
|
||||
'array', $lstat,
|
||||
'Failed asserting that stat on . returns an array'
|
||||
);
|
||||
$lstat = $sftp->lstat('.');
|
||||
$this->assertEquals(
|
||||
$stat, $lstat,
|
||||
'Failed asserting that stat and lstat on . are the same'
|
||||
$this->assertInternalType(
|
||||
'array', $lstat,
|
||||
'Failed asserting that lstat on . returns an array'
|
||||
);
|
||||
|
||||
return $sftp;
|
||||
|
Loading…
Reference in New Issue
Block a user