mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Implement the File stream interface
This commit is contained in:
parent
40b6fb8d12
commit
dbc6aa4a9e
3 changed files with 23 additions and 3 deletions
|
|
@ -94,6 +94,16 @@ class NativeStream extends \PHPUnit_Framework_TestCase {
|
|||
$this->assertEquals('foo', stream_get_contents($fh));
|
||||
}
|
||||
|
||||
public function testLockUnsupported() {
|
||||
$fh = $this->share->write($this->root . '/foobar');
|
||||
$this->assertFalse(flock($fh, LOCK_SH));
|
||||
}
|
||||
|
||||
public function testSetOptionUnsupported() {
|
||||
$fh = $this->share->write($this->root . '/foobar');
|
||||
$this->assertFalse(stream_set_blocking($fh, false));
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
if ($this->share) {
|
||||
$this->cleanDir($this->root);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue