Skip to content

Commit 0fc2a08

Browse files
committed
fix test case for append
1 parent aec9b6f commit 0fc2a08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/AbstractShareTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ public function testWriteStream($name, $text) {
475475
}
476476

477477
public function testAppendStream() {
478+
$name = 'foo.txt';
478479
$fh = $this->share->append($this->root . '/' . $name);
479480
fwrite($fh, 'foo');
480481
fclose($fh);
@@ -484,6 +485,7 @@ public function testAppendStream() {
484485
fclose($fh);
485486

486487
$tmpFile1 = tempnam('/tmp', 'smb_test_');
488+
$this->share->get($this->root . '/' . $name, $tmpFile1);
487489
$this->assertEquals('foobar', file_get_contents($tmpFile1));
488490
$this->share->del($this->root . '/' . $name);
489491
unlink($tmpFile1);

0 commit comments

Comments
 (0)