Skip to content

Commit

Permalink
Improve test readability slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Feb 11, 2021
1 parent 416f186 commit a4adf1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/RSS_Item_iTunes_Podcast_HelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ public function test_rss_item_itunes_subtitle_suffix()

$content = $mp->generate();
$data = simplexml_load_string($content, 'SimpleXMLElement');
$itunes_item0 = $data->channel->item[0]->children('http://www.itunes.com/dtds/podcast-1.0.dtd');
$itunes_item1 = $data->channel->item[1]->children('http://www.itunes.com/dtds/podcast-1.0.dtd');
$item = $data->channel->item;
$itunes_item0 = $item[0]->children('http://www.itunes.com/dtds/podcast-1.0.dtd');
$itunes_item1 = $item[1]->children('http://www.itunes.com/dtds/podcast-1.0.dtd');

$this->assertEquals('testing Click here for more…', $itunes_item0->subtitle);
$this->assertEquals(' Click here for more…', $itunes_item1->subtitle);
Expand Down

0 comments on commit a4adf1f

Please sign in to comment.