Skip to content

Commit

Permalink
fix test case for append
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Aug 28, 2018
1 parent aec9b6f commit 0fc2a08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/AbstractShareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ public function testWriteStream($name, $text) {
}

public function testAppendStream() {
$name = 'foo.txt';
$fh = $this->share->append($this->root . '/' . $name);
fwrite($fh, 'foo');
fclose($fh);
Expand All @@ -484,6 +485,7 @@ public function testAppendStream() {
fclose($fh);

$tmpFile1 = tempnam('/tmp', 'smb_test_');
$this->share->get($this->root . '/' . $name, $tmpFile1);
$this->assertEquals('foobar', file_get_contents($tmpFile1));
$this->share->del($this->root . '/' . $name);
unlink($tmpFile1);
Expand Down

0 comments on commit 0fc2a08

Please sign in to comment.