@@ -91,7 +91,7 @@ public function testAppendTo()
91
91
public function testEnclosure ()
92
92
{
93
93
$ url = uniqid ();
94
- $ enclosure = array ('url ' => $ url , 'length ' => 0 , 'type ' => 'audio/mpeg ' );
94
+ $ enclosure = array ('url ' => $ url , 'length ' => 0 , 'type ' => 'audio/mpeg ' );
95
95
$ item = new Item ();
96
96
$ this ->assertSame ($ item , $ item ->enclosure ($ url ));
97
97
$ this ->assertAttributeSame ($ enclosure , 'enclosure ' , $ item );
@@ -121,10 +121,10 @@ public function testAsXML()
121
121
'guid ' => "http://inessential.com/2002/09/01.php#a2 " ,
122
122
'isPermalink ' => true ,
123
123
'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 ' ),
128
128
'author ' => 'Hidehito Nozawa aka Suin '
129
129
);
130
130
@@ -135,17 +135,17 @@ public function testAsXML()
135
135
$ this ->reveal ($ item )->attr ($ key , $ value );
136
136
}
137
137
138
- $ expect ="
138
+ $ expect = "
139
139
<item>
140
140
<title> {$ data ['title ' ]}</title>
141
141
<link> {$ data ['url ' ]}</link>
142
142
<description> {$ data ['description ' ]}</description>
143
143
<category> {$ data ['categories ' ][0 ][0 ]}</category>
144
144
<category domain= \"{$ data ['categories ' ][1 ][1 ]}\"> {$ data ['categories ' ][1 ][0 ]}</category>
145
- <guid isPermaLink= \" true \" > {$ data ['guid ' ]}</guid>
145
+ <guid> {$ data ['guid ' ]}</guid>
146
146
<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>
149
149
</item>
150
150
" ;
151
151
$ this ->assertXmlStringEqualsXmlString ($ expect , $ item ->asXML ()->asXML ());
0 commit comments