added append() to Wrapped/Share as proxy to Native/Share

This commit is contained in:
Raffael Sahli 2018-08-17 14:17:04 +02:00 committed by Robin Appelman
commit 1cb1f3f56a
5 changed files with 32 additions and 29 deletions

View file

@ -39,19 +39,4 @@ class NativeShareTest extends AbstractShareTest {
}
$this->share->mkdir($this->root);
}
public function testAppendStream() {
$fh = $this->share->append($this->root . '/' . $name);
fwrite($fh, 'foo');
fclose($fh);
$fh = $this->share->append($this->root . '/' . $name);
fwrite($fh, 'bar');
fclose($fh);
$tmpFile1 = tempnam('/tmp', 'smb_test_');
$this->assertEquals('foobar', file_get_contents($tmpFile1));
$this->share->del($this->root . '/' . $name);
unlink($tmpFile1);
}
}