Skip to content

Commit 03f09be

Browse files
committed
- Corrected enclosure test
- Corrected isPermaLink test
1 parent fa1c14b commit 03f09be

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Tests/Suin/RSSWriter/ItemTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testAppendTo()
9191
public function testEnclosure()
9292
{
9393
$url = uniqid();
94-
$enclosure = array('url' => $url, 'length' => 0, 'type' => 'audio/mpeg');
94+
$enclosure = array('url' => $url, 'length' => 0, 'type' => 'audio/mpeg');
9595
$item = new Item();
9696
$this->assertSame($item, $item->enclosure($url));
9797
$this->assertAttributeSame($enclosure, 'enclosure', $item);
@@ -121,10 +121,10 @@ public function testAsXML()
121121
'guid' => "http://inessential.com/2002/09/01.php#a2",
122122
'isPermalink' => true,
123123
'pubDate' => $now,
124-
'enclosure' => array(
125-
'url' => 'http://link-to-audio-file.com/test.mp3',
126-
'length' => 4992,
127-
'type' => 'audio/mpeg'),
124+
'enclosure' => array(
125+
'url' => 'http://link-to-audio-file.com/test.mp3',
126+
'length' => 4992,
127+
'type' => 'audio/mpeg'),
128128
'author' => 'Hidehito Nozawa aka Suin'
129129
);
130130

@@ -135,17 +135,17 @@ public function testAsXML()
135135
$this->reveal($item)->attr($key, $value);
136136
}
137137

138-
$expect ="
138+
$expect = "
139139
<item>
140140
<title>{$data['title']}</title>
141141
<link>{$data['url']}</link>
142142
<description>{$data['description']}</description>
143143
<category>{$data['categories'][0][0]}</category>
144144
<category domain=\"{$data['categories'][1][1]}\">{$data['categories'][1][0]}</category>
145-
<guid isPermaLink=\"true\">{$data['guid']}</guid>
145+
<guid>{$data['guid']}</guid>
146146
<pubDate>{$nowString}</pubDate>
147-
<enclosure url=\"{$data['enclosure']['url']}\" length=\"{$data['enclosure']['length']}\" type=\"{$data['enclosure']['type']}\"/>
148-
<author>{$data['author']}</author>
147+
<enclosure url=\"{$data['enclosure']['url']}\" type=\"{$data['enclosure']['type']}\" length=\"{$data['enclosure']['length']}\"/>
148+
<author>{$data['author']}</author>
149149
</item>
150150
";
151151
$this->assertXmlStringEqualsXmlString($expect, $item->asXML()->asXML());

0 commit comments

Comments
 (0)