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 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 static function setUpBeforeClass()
 {
     if (!extension_loaded('mcrypt') && !extension_loaded('openssl')) {
         self::markTestSkipped('This test depends on mcrypt or openssl for performance.');
     }
     parent::setUpBeforeClass();
 }
 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;
 }
 public static function setUpBeforeClass()
 {
     if (!extension_loaded('mcrypt')) {
         self::markTestSkipped('This test depends on mcrypt for performance.');
     }
     parent::setUpBeforeClass();
     self::ensureConstant('CRYPT_AES_MODE', CRYPT_MODE_MCRYPT);
     self::ensureConstant('CRYPT_BLOWFISH_MODE', CRYPT_MODE_MCRYPT);
     self::ensureConstant('CRYPT_DES_MODE', CRYPT_MODE_MCRYPT);
     self::ensureConstant('CRYPT_RC2_MODE', CRYPT_MODE_MCRYPT);
     self::ensureConstant('CRYPT_RC4_MODE', CRYPT_MODE_MCRYPT);
     self::ensureConstant('CRYPT_RIJNDAEL_MODE', CRYPT_MODE_MCRYPT);
     self::ensureConstant('CRYPT_TWOFISH_MODE', CRYPT_MODE_MCRYPT);
 }