/** * Tests the JWeb::fetchConfigurationData method. * * @param string $fileName The name of the configuration file. * @param boolean $expectsClass The result is expected to be a class. * @param array $expects The expected result as an array. * * @return void * * @dataProvider getFetchConfigurationData * @since 11.3 */ public function testFetchConfigurationData($fileName, $expectsClass, $expects) { $config = $this->inspector->fetchConfigurationData($fileName); if ($expectsClass) { $this->assertInstanceOf('JConfig', $config, 'Checks the configuration object is the appropriate class.'); } $this->assertThat((array) $config, $this->equalTo($expects), 'Checks the content of the configuration object.'); }