diff options
Diffstat (limited to 'simplepie/test/feed_language')
22 files changed, 453 insertions, 0 deletions
diff --git a/simplepie/test/feed_language/SPtests/atom/0.3/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/atom/0.3/dc/1.0/language.php new file mode 100644 index 000000000..a338cd68a --- /dev/null +++ b/simplepie/test/feed_language/SPtests/atom/0.3/dc/1.0/language.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Language_Test_Atom_03_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <dc:language>en-GB</dc:language> +</feed>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/atom/0.3/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/atom/0.3/dc/1.1/language.php new file mode 100644 index 000000000..3e9b8f28b --- /dev/null +++ b/simplepie/test/feed_language/SPtests/atom/0.3/dc/1.1/language.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Language_Test_Atom_03_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <dc:language>en-GB</dc:language> +</feed>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/atom/0.3/xml_lang.php b/simplepie/test/feed_language/SPtests/atom/0.3/xml_lang.php new file mode 100644 index 000000000..c8f16e586 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/atom/0.3/xml_lang.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Language_Test_Atom_03_xmllang extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-GB"> + <title>Feed Title</title> +</feed>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/atom/1.0/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/atom/1.0/dc/1.0/language.php new file mode 100644 index 000000000..408861877 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/atom/1.0/dc/1.0/language.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Language_Test_Atom_10_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <dc:language>en-GB</dc:language> +</feed>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/atom/1.0/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/atom/1.0/dc/1.1/language.php new file mode 100644 index 000000000..0fd63dbfa --- /dev/null +++ b/simplepie/test/feed_language/SPtests/atom/1.0/dc/1.1/language.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Language_Test_Atom_10_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <dc:language>en-GB</dc:language> +</feed>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/atom/1.0/xml_lang.php b/simplepie/test/feed_language/SPtests/atom/1.0/xml_lang.php new file mode 100644 index 000000000..b8dd959a1 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/atom/1.0/xml_lang.php @@ -0,0 +1,19 @@ +<?php + +class SimplePie_Feed_Language_Test_Atom_10_xmllang extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB"> + <title>Feed Title</title> +</feed>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.90/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/rss/0.90/dc/1.0/language.php new file mode 100644 index 000000000..1fb9378f0 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.90/dc/1.0/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_090_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.90/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/rss/0.90/dc/1.1/language.php new file mode 100644 index 000000000..7bd5409ad --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.90/dc/1.1/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_090_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.91-netscape/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/rss/0.91-netscape/dc/1.0/language.php new file mode 100644 index 000000000..852c3b344 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.91-netscape/dc/1.0/language.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_091_Netscape_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.91-netscape/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/rss/0.91-netscape/dc/1.1/language.php new file mode 100644 index 000000000..dfccbad99 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.91-netscape/dc/1.1/language.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_091_Netscape_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.91-netscape/language.php b/simplepie/test/feed_language/SPtests/rss/0.91-netscape/language.php new file mode 100644 index 000000000..2da182f56 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.91-netscape/language.php @@ -0,0 +1,22 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_091_Netscape_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.91.dtd"> +<rss version="0.91"> + <channel> + <language>en-GB</language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.91-userland/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/rss/0.91-userland/dc/1.0/language.php new file mode 100644 index 000000000..b0db9c0b2 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.91-userland/dc/1.0/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_091_Userland_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.91-userland/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/rss/0.91-userland/dc/1.1/language.php new file mode 100644 index 000000000..3de203ba4 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.91-userland/dc/1.1/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_091_Userland_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="0.91" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.91-userland/language.php b/simplepie/test/feed_language/SPtests/rss/0.91-userland/language.php new file mode 100644 index 000000000..d3b5cb5e1 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.91-userland/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_091_Userland_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="0.91"> + <channel> + <language>en-GB</language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.92/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/rss/0.92/dc/1.0/language.php new file mode 100644 index 000000000..f2fa9cb1b --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.92/dc/1.0/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_092_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.92/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/rss/0.92/dc/1.1/language.php new file mode 100644 index 000000000..3aaa4bd6c --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.92/dc/1.1/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_092_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="0.92" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/0.92/language.php b/simplepie/test/feed_language/SPtests/rss/0.92/language.php new file mode 100644 index 000000000..6292787f9 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/0.92/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_092_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="0.92"> + <channel> + <language>en-GB</language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/1.0/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/rss/1.0/dc/1.0/language.php new file mode 100644 index 000000000..c038f0b36 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/1.0/dc/1.0/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_10_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/1.0/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/rss/1.0/dc/1.1/language.php new file mode 100644 index 000000000..2e5163ea1 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/1.0/dc/1.1/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_10_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rdf:RDF>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/2.0/dc/1.0/language.php b/simplepie/test/feed_language/SPtests/rss/2.0/dc/1.0/language.php new file mode 100644 index 000000000..2afed9d88 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/2.0/dc/1.0/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_20_DC_10_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/2.0/dc/1.1/language.php b/simplepie/test/feed_language/SPtests/rss/2.0/dc/1.1/language.php new file mode 100644 index 000000000..1dec61005 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/2.0/dc/1.1/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_20_DC_11_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <channel> + <dc:language>en-GB</dc:language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/feed_language/SPtests/rss/2.0/language.php b/simplepie/test/feed_language/SPtests/rss/2.0/language.php new file mode 100644 index 000000000..99cd84fc2 --- /dev/null +++ b/simplepie/test/feed_language/SPtests/rss/2.0/language.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_Feed_Language_Test_RSS_20_Language extends SimplePie_Feed_Language_Test +{ + function data() + { + $this->data = +'<rss version="2.0"> + <channel> + <language>en-GB</language> + </channel> +</rss>'; + } + + function expected() + { + $this->expected = 'en-GB'; + } +} + +?>
\ No newline at end of file |