public function testGetDispatchesEvent() { $this->getDispatcherMock()->expects($this->once())->method('dispatch')->with(TransporterEvents::TRANSPORTER_GET, $this->anything()); $this->transporter->get($this->transporter->getPath() . '/hello.txt', '/tmp/test'); }
/** * Retrieve file or directory from remote server * * @param string $src remote source path * @param string $dest (optional) local destination path */ public function get($src, $dest = null) { return $this->innerTransporter->get($src, $dest); }