mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-12 09:51:32 +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)
|
public function testStatOnCWD($sftp)
|
||||||
{
|
{
|
||||||
$stat = $sftp->stat('.');
|
$stat = $sftp->stat('.');
|
||||||
|
$this->assertInternalType(
|
||||||
|
'array', $lstat,
|
||||||
|
'Failed asserting that stat on . returns an array'
|
||||||
|
);
|
||||||
$lstat = $sftp->lstat('.');
|
$lstat = $sftp->lstat('.');
|
||||||
$this->assertEquals(
|
$this->assertInternalType(
|
||||||
$stat, $lstat,
|
'array', $lstat,
|
||||||
'Failed asserting that stat and lstat on . are the same'
|
'Failed asserting that lstat on . returns an array'
|
||||||
);
|
);
|
||||||
|
|
||||||
return $sftp;
|
return $sftp;
|
||||||
|
Loading…
Reference in New Issue
Block a user