public function setUp() { parent::setUp(); $this->wrapper = self::$wrapper; $this->manager = new FTPFilesystemManager(self::$wrapper, new FilesystemFactory(new PermissionsFactory())); $this->deleter = new RecursiveDirectoryDeleter(self::$wrapper, $this->manager); }
public function setUp() { parent::setUp(); $this->wrapper = new FTPWrapper(self::$connection); $factory = new FilesystemFactory(new PermissionsFactory()); $this->manager = new FTPFilesystemManager($this->wrapper, $factory); }
public function setUp() { parent::setUp(); $this->downloader = new FileDownloader(new FTPWrapper(self::$connection)); $this->local = tempnam(sys_get_temp_dir(), 'filedownloader'); $this->remote = new File('file1.txt'); $this->options = array(FTP::NON_BLOCKING => false); }
public function setUp() { parent::setUp(); $factory = new FTPFactory(); $this->ftp = $factory->build(self::$connection); $this->manager = $factory->getManager(); $this->wrapper = self::$wrapper; }
public function setUp() { parent::setUp(); $this->wrapper = self::$wrapper; $this->uploader = new FileUploader($this->wrapper); $this->local = __FILE__; $this->remote = new File(basename(__FILE__)); $this->options = array(FTP::NON_BLOCKING => false); }
public function setUp() { parent::setUp(); $self = $this; $this->called = false; $this->downloader = new NbFileDownloader(new FTPWrapper(self::$connection)); $this->local = tempnam(sys_get_temp_dir(), 'nbfiledownloader'); $this->remote = new File('file1.txt'); $this->options = array(FTP::NON_BLOCKING => true, FTP::NON_BLOCKING_CALLBACK => function () use($self) { $self->called = true; }); }
public function setUp() { parent::setUp(); $self = $this; $this->called = false; $this->wrapper = self::$wrapper; $this->uploader = new NbFileUploader($this->wrapper); $this->local = __FILE__; $this->remote = new File(basename(__FILE__)); $this->options = array(FTP::NON_BLOCKING => true, FTP::NON_BLOCKING_CALLBACK => function () use($self) { $self->called = true; }); }