mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-27 00:58:25 +00:00
SFTP Functional tests: Make use of assertNotSame
This commit is contained in:
parent
8a43f02ae9
commit
5afc865775
@ -129,12 +129,10 @@ class Net_SFTPFunctionalTest extends PhpseclibFunctionalTestCase
|
|||||||
*/
|
*/
|
||||||
public function testStatOnDir($sftp)
|
public function testStatOnDir($sftp)
|
||||||
{
|
{
|
||||||
$stat = $sftp->stat('.');
|
$this->assertNotSame(
|
||||||
|
array(),
|
||||||
$this->assertThat(
|
$sftp->stat('.'),
|
||||||
$stat,
|
'Failed asserting that the cwd has a non-empty stat.'
|
||||||
$this->logicalNot($this->equalTo(array())),
|
|
||||||
'Failed asserting that the cwd has a non-empty stat'
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $sftp;
|
return $sftp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user