public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::$remoteFile = uniqid('phpseclib-scp-ssh2-', true) . '.txt'; self::$exampleData = str_repeat('abscp12345', 1000); self::$exampleDataLength = 10000; }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::$scratchDir = uniqid('phpseclib-sftp-scratch-'); self::$exampleData = str_repeat('abcde12345', 1000); self::$exampleDataLength = 10000; }
public function setUp() { if (getenv('TRAVIS') && version_compare(PHP_VERSION, '5.3.3', '<=')) { $this->markTestIncomplete('This test hangs on Travis CI on PHP 5.3.3 and below.'); } parent::setUp(); }
public static function setUpBeforeClass() { if (!isset($_SERVER['SSH_AUTH_SOCK'])) { self::markTestSkipped('This test requires an SSH Agent (SSH_AUTH_SOCK env variable).'); } parent::setUpBeforeClass(); }
public function tearDown() { if ($this->sftp) { $this->sftp->chdir($this->getEnv('SSH_HOME')); $this->sftp->delete($this->scratchDir); } parent::tearDown(); }
public static function setUpBeforeClass() { if (getenv('TRAVIS') && version_compare(PHP_VERSION, '5.3.3', '<=')) { self::markTestIncomplete('This test hangs on Travis CI on PHP 5.3.3 and below.'); } parent::setUpBeforeClass(); self::$scratchDir = uniqid('phpseclib-sftp-scratch-'); self::$exampleData = str_repeat('abcde12345', 1000); self::$exampleDataLength = 10000; }
public static function setUpBeforeClass() { if (getenv('TRAVIS') && version_compare(PHP_VERSION, '5.3.0', '<')) { self::markTestIncomplete('This test fails on Travis CI on PHP 5.2 due to requiring GMP.'); } parent::setUpBeforeClass(); self::$remoteFile = uniqid('phpseclib-scp-ssh2-') . '.txt'; self::$exampleData = str_repeat('abscp12345', 1000); self::$exampleDataLength = 10000; }