/** * @param array $options * @expectedException \InvalidArgumentException * @expectedExceptionMessage Parse error: Option "files_for_parse" is wrong. * @dataProvider dataProviderWrongOptionFilesForParse */ public function testParseWithWrongOptionFilesForParse($options) { $this->parser->parse($options); }
public function testParse() { $expected = ['Magento\\Module1', 'Magento\\Module2']; $actual = $this->parser->parse(['files_for_parse' => [$this->fixtureDir . 'module1.xml', $this->fixtureDir . 'module2.xml']]); $this->assertEquals($expected, $actual); }