/** * @dataProvider existingPathProvider */ public function testExportSingleFile($filename) { // we need to make sure the destination exists $filesystem = new Filesystem(); $filesystem->mkdir($this->exportDir); $this->client->export($filename, $this->exportDir); $this->assertFileExists($this->exportDir . '/' . $filename); }
public function export(Version $version, $dest) { $head = $this->getHead($version); $this->client->setHead($head); /* * @todo Collect output of export process * * if ($this->io) { * $io = $this->io; * $this->client->setOutput(function ($type, $output) use ($io) { * if ($io->isVerbose()) { * $io->write($output, false); * } * }); *} */ $result = $this->client->export('', $dest); //$this->client->setOutput(null); return $result; }