public function testIncompleteCacheOptionsThrowsException() { $instance = new CacheFactory('hash'); $this->setExpectedException('RuntimeException'); $cacheOptions = $instance->newCacheOptions(array('useCache' => true)); }