aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_image_width/SPtests/rss/2.0/width.php
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/feed_image_width/SPtests/rss/2.0/width.php')
-rw-r--r--simplepie/test/feed_image_width/SPtests/rss/2.0/width.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/simplepie/test/feed_image_width/SPtests/rss/2.0/width.php b/simplepie/test/feed_image_width/SPtests/rss/2.0/width.php
new file mode 100644
index 000000000..3572f9a8b
--- /dev/null
+++ b/simplepie/test/feed_image_width/SPtests/rss/2.0/width.php
@@ -0,0 +1,23 @@
+<?php
+
+class SimplePie_Feed_Image_Width_Test_RSS_20_Width extends SimplePie_Feed_Image_Width_Test
+{
+ function data()
+ {
+ $this->data =
+'<rss version="2.0">
+ <channel>
+ <image>
+ <width>100</width>
+ </image>
+ </channel>
+</rss>';
+ }
+
+ function expected()
+ {
+ $this->expected = 100.0;
+ }
+}
+
+?> \ No newline at end of file