diff options
Diffstat (limited to 'simplepie/test/first_item_id/SPtests/atom')
6 files changed, 126 insertions, 0 deletions
diff --git a/simplepie/test/first_item_id/SPtests/atom/0.3/dc/1.0/identifier.php b/simplepie/test/first_item_id/SPtests/atom/0.3/dc/1.0/identifier.php new file mode 100644 index 000000000..44a34d499 --- /dev/null +++ b/simplepie/test/first_item_id/SPtests/atom/0.3/dc/1.0/identifier.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_ID_Test_Atom_03_DC_10_Identifier extends SimplePie_First_Item_ID_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <entry> + <dc:identifier>http://example.com/</dc:identifier> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_id/SPtests/atom/0.3/dc/1.1/identifier.php b/simplepie/test/first_item_id/SPtests/atom/0.3/dc/1.1/identifier.php new file mode 100644 index 000000000..ddb9ca094 --- /dev/null +++ b/simplepie/test/first_item_id/SPtests/atom/0.3/dc/1.1/identifier.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_ID_Test_Atom_03_DC_11_Identifier extends SimplePie_First_Item_ID_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <entry> + <dc:identifier>http://example.com/</dc:identifier> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_id/SPtests/atom/0.3/id.php b/simplepie/test/first_item_id/SPtests/atom/0.3/id.php new file mode 100644 index 000000000..de783213a --- /dev/null +++ b/simplepie/test/first_item_id/SPtests/atom/0.3/id.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_ID_Test_Atom_03_ID extends SimplePie_First_Item_ID_Test +{ + function data() + { + $this->data = +'<feed version="0.3" xmlns="http://purl.org/atom/ns#"> + <entry> + <id>http://example.com/</id> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_id/SPtests/atom/1.0/dc/1.0/identifier.php b/simplepie/test/first_item_id/SPtests/atom/1.0/dc/1.0/identifier.php new file mode 100644 index 000000000..cdba6bf0d --- /dev/null +++ b/simplepie/test/first_item_id/SPtests/atom/1.0/dc/1.0/identifier.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_ID_Test_Atom_10_DC_10_Identifier extends SimplePie_First_Item_ID_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.0/"> + <entry> + <dc:identifier>http://example.com/</dc:identifier> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_id/SPtests/atom/1.0/dc/1.1/identifier.php b/simplepie/test/first_item_id/SPtests/atom/1.0/dc/1.1/identifier.php new file mode 100644 index 000000000..e1f8d40c7 --- /dev/null +++ b/simplepie/test/first_item_id/SPtests/atom/1.0/dc/1.1/identifier.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_ID_Test_Atom_10_DC_11_Identifier extends SimplePie_First_Item_ID_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> + <entry> + <dc:identifier>http://example.com/</dc:identifier> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/first_item_id/SPtests/atom/1.0/id.php b/simplepie/test/first_item_id/SPtests/atom/1.0/id.php new file mode 100644 index 000000000..f9bd4e2b9 --- /dev/null +++ b/simplepie/test/first_item_id/SPtests/atom/1.0/id.php @@ -0,0 +1,21 @@ +<?php + +class SimplePie_First_Item_ID_Test_Atom_10_ID extends SimplePie_First_Item_ID_Test +{ + function data() + { + $this->data = +'<feed xmlns="http://www.w3.org/2005/Atom"> + <entry> + <id>http://example.com/</id> + </entry> +</feed>'; + } + + function expected() + { + $this->expected = 'http://example.com/'; + } +} + +?>
\ No newline at end of file |