Extend nativestream tests

This commit is contained in:
Robin Appelman 2014-07-22 23:36:47 +02:00
commit 0cf2fa0904
2 changed files with 30 additions and 2 deletions

View file

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