File "FtpdAdapterTest.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/league/flysystem/src/Ftp/FtpdAdapterTest.php
File size: 732 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
declare(strict_types=1);
namespace League\Flysystem\Ftp;
use League\Flysystem\FilesystemAdapter;
/**
* @group ftpd
*/
class FtpdAdapterTest extends FtpAdapterTestCase
{
protected static function createFilesystemAdapter(): FilesystemAdapter
{
$options = FtpConnectionOptions::fromArray([
'host' => 'localhost',
'port' => 2122,
'timestampsOnUnixListingsEnabled' => true,
'root' => '/',
'username' => 'foo',
'password' => 'pass',
]);
static::$connectivityChecker = new ConnectivityCheckerThatCanFail(new NoopCommandConnectivityChecker());
return new FtpAdapter($options, null, static::$connectivityChecker);
}
}