Additional test cases

This commit is contained in:
Robin Appelman 2013-05-01 20:58:04 +02:00
commit 69e9082def
3 changed files with 120 additions and 5 deletions

View file

@ -184,10 +184,11 @@ class Share {
/**
* @param $lines
*
* @throws \SMB\NotFoundException
* @throws \SMB\AlreadyExistsException
* @throws \SMB\AccessDeniedException
* @throws \SMB\NotEmptyException
* @throws NotFoundException
* @throws AlreadyExistsException
* @throws AccessDeniedException
* @throws NotEmptyException
* @throws InvalidTypeException
* @throws \Exception
* @return bool
*/
@ -210,6 +211,9 @@ class Share {
throw new AccessDeniedException();
case ErrorCodes::DirectoryNotEmpty:
throw new NotEmptyException();
case ErrorCodes::FileIsADirectory:
case ErrorCodes::NotADirectory:
throw new InvalidTypeException();
default:
throw new \Exception();
}