SFTP Functional tests: Make use of assertNotSame

This commit is contained in:
Andreas Fischer 2014-05-22 00:38:04 +02:00
parent 8a43f02ae9
commit 5afc865775

View File

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