/**
* @depends testPutGetString
* @param \phpseclib\Net\SCP $scp
*/
public function testGetFile($scp)
{
$localFilename = $this->createTempFile();
$this->assertTrue($scp->get(self::$remoteFile, $localFilename), 'Failed asserting that get() into file was successful.');
// TODO: Address https://github.com/phpseclib/phpseclib/issues/146
$this->assertContains(filesize($localFilename), array(self::$exampleDataLength, self::$exampleDataLength + 1), 'Failed asserting that filesize matches expected data size.');
$this->assertContains(file_get_contents($localFilename), array(self::$exampleData, self::$exampleData . ""), 'Failed asserting that file content matches expected content.');
}