beter catching of errors

This commit is contained in:
Robin Appelman 2013-06-17 15:11:06 +02:00
commit cb96c44176
2 changed files with 15 additions and 1 deletions

View file

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