/** * @depends testSetConfig * @param File $cache */ public function testConfigRaiseException(File $cache) { $errMsg = sprintf('"%s" cannot read', $this->file); $this->setExpectedException(\Phalex\Config\Cache\Exception\RuntimeException::class, $errMsg); chmod($this->file, 0333); $cache->getConfig(); }