Tests/SFTP: just check to see that stat / lstat return an array

This commit is contained in:
terrafrost 2015-06-27 07:43:35 -05:00
parent d1d415618a
commit df65acb999

View File

@ -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;