/** * @param string $filePath * * @throws ConfigNotFoundException * @throws ParseException * * @return array The parsed configuration * * @see Parser::parseConfig() * * @note Configuration data stored in cache with the key as the file path */ public function parseConfig($filePath) { $data = $this->cacher->get($filePath); if (!$data) { $data = $this->parser->parseConfig($filePath); $this->cacher->set($filePath, $data); } return $data; }
/** * Test that a ConfigNotFoundException is thrown when an invalid configuration file path is provided */ public function testConfigFileNotFoundExceptionThrown() { $this->setExpectedException('Aurex\\Framework\\Config\\ConfigNotFoundException'); $this->parser->parseConfig('/fileNotFound'); }