public function testItThrowsAnExceptionWhenParsingInvalidIni() { $this->setExpectedException('\\UltraLite\\ConfigReader\\ConfigReaderException\\ConfigParsingThrewError'); $this->configReader->getConfigArray(FIXTURE_FOLDER . 'invalid.ini'); }
/** * @dataProvider provideExampleFiles */ public function testItCanReadExampleFiles(string $fileName, string $errorMessage) { $expectedResult = ['root' => ['node' => 'value']]; $result = $this->configReader->getConfigArray(FIXTURE_FOLDER . $fileName); $this->assertEquals($expectedResult, $result, $errorMessage); }