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 function setUp() { parent::setUp(); $this->scratchDir = uniqid('phpseclib-sftp-scratch-'); $this->sftp = new SFTP($this->getEnv('SSH_HOSTNAME')); $this->assertTrue($this->sftp->login($this->getEnv('SSH_USERNAME'), $this->getEnv('SSH_PASSWORD'))); $this->assertTrue($this->sftp->mkdir($this->scratchDir)); $this->assertTrue($this->sftp->chdir($this->scratchDir)); }