mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Clean native stream wrapping
This commit is contained in:
parent
5c48e22929
commit
8d41d7a97b
3 changed files with 26 additions and 59 deletions
|
|
@ -102,23 +102,4 @@ class NativeStream extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
$this->share->rmdir($dir);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Icewind\SMB\Exception
|
||||
*/
|
||||
public function testNoContext() {
|
||||
return fopen('nativesmb://dummy', 'r');
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Icewind\SMB\Exception
|
||||
*/
|
||||
public function testInvalidContext() {
|
||||
$context = stream_context_create(array(
|
||||
'nativesmb' => array(
|
||||
'foo' => 'bar'
|
||||
)
|
||||
));
|
||||
return fopen('nativesmb://dummy', 'r', false, $context);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue