Skip to content

Commit

Permalink
Fix positions in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Jan 5, 2023
1 parent 1bd9a59 commit 9e76840
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/MixedMediaExampleWithExtraFilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public function test_podcast_has_expected_overrideable_fields()
{
$data = simplexml_load_string(file_get_contents(self::$file));

$this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[1]->image);
$this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[2]->image);
$this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[2]->image);
$this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[3]->image);

$itdtd = "http://www.itunes.com/dtds/podcast-1.0.dtd";

$this->assertEquals('New, Improved Summary', $data->channel->item[4]->children($itdtd)->summary);
$this->assertEquals('Return Of The Episode', $data->channel->item[3]->children($itdtd)->subtitle);
$this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[1]->children($itdtd)->image->attributes()->href);
$this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[2]->children($itdtd)->image->attributes()->href);
$this->assertEquals('New, Improved Summary', $data->channel->item[5]->children($itdtd)->summary);
$this->assertEquals('Return Of The Episode', $data->channel->item[4]->children($itdtd)->subtitle);
$this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[2]->children($itdtd)->image->attributes()->href);
$this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[3]->children($itdtd)->image->attributes()->href);

}

Expand Down

0 comments on commit 9e76840

Please sign in to comment.