public function testReturnsValidTarContent() { $directory = __DIR__ . DIRECTORY_SEPARATOR . "context-test"; $context = new Context($directory); $process = new Process('/usr/bin/env tar c .', $directory); $process->run(); $this->assertEquals(strlen($process->getOutput()), strlen($context->toTar())); }
public function testReturnsValidTarContent() { if (!file_exists('/bin/tar')) { $this->markTestSkipped('No /bin/tar on host'); } $directory = __DIR__ . DIRECTORY_SEPARATOR . "context-test"; $context = new Context($directory); $process = new Process('/bin/tar c .', $directory); $process->run(); $this->assertEquals(md5($process->getOutput()), md5($context->toTar())); }