From 5afc865775b523357ba15baafd85fde8b0b7115f Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Thu, 22 May 2014 00:38:04 +0200 Subject: [PATCH] SFTP Functional tests: Make use of assertNotSame --- tests/Net/SFTPFunctionalTest.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/Net/SFTPFunctionalTest.php b/tests/Net/SFTPFunctionalTest.php index 0fc2399d..9c43b55b 100644 --- a/tests/Net/SFTPFunctionalTest.php +++ b/tests/Net/SFTPFunctionalTest.php @@ -129,12 +129,10 @@ class Net_SFTPFunctionalTest extends PhpseclibFunctionalTestCase */ public function testStatOnDir($sftp) { - $stat = $sftp->stat('.'); - - $this->assertThat( - $stat, - $this->logicalNot($this->equalTo(array())), - 'Failed asserting that the cwd has a non-empty stat' + $this->assertNotSame( + array(), + $sftp->stat('.'), + 'Failed asserting that the cwd has a non-empty stat.' ); return $sftp;