Tests/SFTP: updates to newly added unit test

This commit is contained in:
terrafrost 2015-09-27 10:57:41 -05:00
parent e2a2ad8c91
commit 759e04f08e

View File

@ -650,17 +650,21 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
$sftp->enableStatCache(); $sftp->enableStatCache();
//$sftp->chdir('..');
return $sftp; return $sftp;
} }
/** /**
* @depends testStatVsLstat * @depends testStatVsLstat
* @group github735 * @group github830
*/ */
public function testEndlessLoopOnUpload($sftp) public function testEndlessLoopOnUpload($sftp)
{ {
$sftp->put('endless.txt', 'res.txt', NET_SFTP_LOCAL_FILE, 0, 10); $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.'
);
} }
} }