mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 18:25:13 +00:00
Tests/SFTP: updates to newly added unit test
This commit is contained in:
parent
e2a2ad8c91
commit
759e04f08e
@ -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.'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user