Skip to content

Commit

Permalink
Parse lang attribute for a display-name node
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Aug 17, 2019
1 parent 5a0bd85 commit f11c82d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Fixtures/xmltv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv date="date" generator-info-name="generator-info-name" generator-info-url="generator-info-url" source-data-url="source-data-url" source-info-name="source-info-name" source-info-url="source-info-url">
<channel id="channel-id">
<display-name>Display name</display-name>
<display-name lang="display-name-lang">Display name</display-name>
<icon src="src" width="1920" height="1080"/>
<url>URL</url>
</channel>
Expand Down
1 change: 1 addition & 0 deletions tests/Parser/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit f11c82d

Please sign in to comment.