mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
fix test case for append
This commit is contained in:
parent
aec9b6f2f8
commit
0fc2a0820c
1 changed files with 2 additions and 0 deletions
|
|
@ -475,6 +475,7 @@ abstract class AbstractShareTest extends TestCase {
|
|||
}
|
||||
|
||||
public function testAppendStream() {
|
||||
$name = 'foo.txt';
|
||||
$fh = $this->share->append($this->root . '/' . $name);
|
||||
fwrite($fh, 'foo');
|
||||
fclose($fh);
|
||||
|
|
@ -484,6 +485,7 @@ abstract class AbstractShareTest extends TestCase {
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue