private ConfigReader
$configReader;
protected function setUp(): void
{ $this->configReader =
new ConfigReader();
} public function testConfigReaderWithValidConfig(): void
{ $actualConfig =
$this->configReader->
read(__DIR__ . '/_fixtures/valid_config.xml'
);
static::
assertSame($this->
getExpectedConfig(),
$actualConfig);
} public function testConfigReaderWithInvalidPath(): void
{ $this->
expectException(XmlParsingException::
class);
$this->configReader->
read(__DIR__ . '/config.xml'
);
} public function testConfigReaderWithInvalidConfig(): void
{