aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/feed_language/SPtests/atom
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-05 03:34:42 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-05 03:34:42 -0700
commit9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch)
tree0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/feed_language/SPtests/atom
parentf5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff)
downloadvolse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2
volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip
Add simplepie
Diffstat (limited to 'simplepie/test/feed_language/SPtests/atom')
-rw-r--r--simplepie/test/feed_language/SPtests/atom/0.3/dc/1.0/language.php19
-rw-r--r--simplepie/test/feed_language/SPtests/atom/0.3/dc/1.1/language.php19
-rw-r--r--simplepie/test/feed_language/SPtests/atom/0.3/xml_lang.php19
-rw-r--r--simplepie/test/feed_language/SPtests/atom/1.0/dc/1.0/language.php19
-rw-r--r--simplepie/test/feed_language/SPtests/atom/1.0/dc/1.1/language.php19
-rw-r--r--simplepie/test/feed_language/SPtests/atom/1.0/xml_lang.php19
6 files changed, 114 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