fix dir for non existing folders

This commit is contained in:
Robin Appelman 2013-06-16 22:26:17 +02:00
commit c91c970a8a
2 changed files with 12 additions and 2 deletions

View file

@ -255,4 +255,11 @@ class Share extends \PHPUnit_Framework_TestCase {
$this->share->rmdir($this->root . '/foobar');
$this->share->del($this->root . '/foobar');
}
/**
* @expectedException \SMB\NotFoundException
*/
public function testDirNonExisting() {
$this->share->dir('/foobar/asd');
}
}