mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Extend nativestream tests
This commit is contained in:
parent
dd983282a6
commit
0cf2fa0904
2 changed files with 30 additions and 2 deletions
|
|
@ -31,14 +31,14 @@ class NativeStream {
|
|||
if (isset($context['nativesmb'])) {
|
||||
$context = $context['nativesmb'];
|
||||
} else {
|
||||
throw new \Exception('Invalid context');
|
||||
throw new Exception('Invalid context');
|
||||
}
|
||||
if (isset($context['state']) and isset($context['handle'])) {
|
||||
$this->state = $context['state'];
|
||||
$this->handle = $context['handle'];
|
||||
return true;
|
||||
} else {
|
||||
throw new \Exception('Invalid context');
|
||||
throw new Exception('Invalid context');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue