Cover cases that can throw exceptions in ResourceManager
Merge pull request #1419 from ckdarby/ResourceManager_phpunit

Cover cases that can throw exceptions in ResourceManager