* @covers MensBeam\Lax\Parser\XML\Entry * @covers MensBeam\Lax\Parser\XML\XPath */ class XMLTest extends AbstractParserTestCase { /** @dataProvider provideXML */ public function testParseAnXmlFeed(string $input, string $type, ?string $url, $exp): void { $p = new \MensBeam\Lax\Parser\XML\Feed($input, $type, $url); if ($exp instanceof \Exception) { $this->expectExceptionObject($exp); $p->parse(); } else { $act = $p->parse(); $this->assertEquals($exp, $act); } } public function provideXML(): iterable { return $this->provideParserTests(__DIR__."/XML/*.yaml"); } }