Implement the File stream interface

This commit is contained in:
Robin Appelman 2014-08-03 16:13:02 +02:00
commit dbc6aa4a9e
3 changed files with 23 additions and 3 deletions

View file

@ -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);