Skip to content

Commit

Permalink
Update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Sep 30, 2019
1 parent 8fabae3 commit d584d19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/Fixtures/xmltv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<icon src="src" width="1920" height="1080"/>
<url>URL</url>
</channel>
<programme start="20190730200000 +200" stop="20190730220000 +200" pdc-start="20190730200000 +100" vps-start="20190730200000 -100" showview="showview" videoplus="videoplus" channel="channel-id" clumpidx="clumpidx">
<programme start="20190730200000 +0200" stop="20190730220000 +0200" pdc-start="20190730200000 +0100" vps-start="20190730200000 -0100" showview="showview" videoplus="videoplus" channel="channel-id" clumpidx="clumpidx">
<title lang="title-lang">Title</title>
<sub-title lang="secondary-title-lang">Secondary title</sub-title>
<desc lang="desc-lang">Desc</desc>
Expand Down
8 changes: 4 additions & 4 deletions tests/Parser/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,22 +656,22 @@ public function testParseProgramme() {
$this->assertInstanceOf(Length::class, $res->getLength());
$this->assertInstanceOf(OrigLanguage::class, $res->getOrigLanguage());
$this->assertTrue($res->getNew());
$this->assertEquals("20190730200000 +100", $res->getPdcStart());
$this->assertEquals("20190730200000 +0100", $res->getPdcStart());
$this->assertInstanceOf(Premiere::class, $res->getPremiere());
$this->assertInstanceOf(PreviouslyShown::class, $res->getPreviouslyShown());
$this->assertInstanceOf(Rating::class, $res->getRatings()[0]);
$this->assertInstanceOf(Review::class, $res->getReviews()[0]);
$this->assertInstanceOf(SecondaryTitle::class, $res->getSecondaryTitles()[0]);
$this->assertInstanceOf(StarRating::class, $res->getStarRatings()[0]);
$this->assertEquals("showview", $res->getShowView());
$this->assertEquals("20190730200000 +200", $res->getStart());
$this->assertEquals("20190730220000 +200", $res->getStop());
$this->assertEquals("20190730200000 +0200", $res->getStart());
$this->assertEquals("20190730220000 +0200", $res->getStop());
$this->assertInstanceOf(Subtitles::class, $res->getSubtitles()[0]);
$this->assertInstanceOf(Title::class, $res->getTitles()[0]);
$this->assertInstanceOf(Url::class, $res->getUrls()[0]);
$this->assertInstanceOf(Video::class, $res->getVideo());
$this->assertEquals("videoplus", $res->getVideoPlus());
$this->assertEquals("20190730200000 -100", $res->getVpsStart());
$this->assertEquals("20190730200000 -0100", $res->getVpsStart());
}

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/Statistic/testToString.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
icon height 4 4 4 4.00
url 2 3 3 3.00
programme 1 776 776 776.00
programme start 1 19 19 19.00
programme stop 1 19 19 19.00
programme pdc-start 1 19 19 19.00
programme vps-start 1 19 19 19.00
programme start 1 20 20 20.00
programme stop 1 20 20 20.00
programme pdc-start 1 20 20 20.00
programme vps-start 1 20 20 20.00
programme showview 1 8 8 8.00
programme videoplus 1 9 9 9.00
programme channel 1 10 10 10.00
Expand Down

0 comments on commit d584d19

Please sign in to comment.