From 759e04f08ec8e9bba854f3a12e69637eb8189c25 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 27 Sep 2015 10:57:41 -0500 Subject: [PATCH] Tests/SFTP: updates to newly added unit test --- tests/Functional/Net/SFTPUserStoryTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/Functional/Net/SFTPUserStoryTest.php b/tests/Functional/Net/SFTPUserStoryTest.php index bbd5d4bc..ceedcfa5 100644 --- a/tests/Functional/Net/SFTPUserStoryTest.php +++ b/tests/Functional/Net/SFTPUserStoryTest.php @@ -650,17 +650,21 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase $sftp->enableStatCache(); - //$sftp->chdir('..'); - return $sftp; } /** * @depends testStatVsLstat - * @group github735 + * @group github830 */ public function testEndlessLoopOnUpload($sftp) { $sftp->put('endless.txt', 'res.txt', NET_SFTP_LOCAL_FILE, 0, 10); + + $this->assertSame( + substr(self::$exampleData, 10), + $sftp->get('endless.txt'), + 'Failed asserting that portions of a file could be uploaded.' + ); } }