From f11c82dd2bb1571636cb67db1966fa2c0e3c3d43 Mon Sep 17 00:00:00 2001 From: webeweb Date: Sat, 17 Aug 2019 11:17:17 +0200 Subject: [PATCH] Parse lang attribute for a display-name node --- tests/Fixtures/xmltv.xml | 2 +- tests/Parser/ParserTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Fixtures/xmltv.xml b/tests/Fixtures/xmltv.xml index b8e1613..b895f10 100644 --- a/tests/Fixtures/xmltv.xml +++ b/tests/Fixtures/xmltv.xml @@ -2,7 +2,7 @@ - Display name + Display name URL diff --git a/tests/Parser/ParserTest.php b/tests/Parser/ParserTest.php index dd87274..f23e699 100644 --- a/tests/Parser/ParserTest.php +++ b/tests/Parser/ParserTest.php @@ -355,6 +355,7 @@ public function testParseDisplayName() { $this->assertInstanceOf(DisplayName::class, $res); $this->assertEquals("Display name", $res->getContent()); + $this->assertEquals("display-name-lang", $res->getLang()); } /**