From 0e752790a3cae8da1126f545f96967bcbb3d1de5 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 2 Dec 2008 21:41:07 +0000 Subject: Removed per jozefs --- modules/atom/tests/Atom_Test.php | 96 ---------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 modules/atom/tests/Atom_Test.php (limited to 'modules/atom/tests') diff --git a/modules/atom/tests/Atom_Test.php b/modules/atom/tests/Atom_Test.php deleted file mode 100644 index aad7057d..00000000 --- a/modules/atom/tests/Atom_Test.php +++ /dev/null @@ -1,96 +0,0 @@ -id("http://gallery.example.com/comments") - ->title("Comments on Ocean Beach Sunset", "text") - ->updated(time()); - - $feed->link() - ->rel("self") - ->href("http://gallery.example.com/comments"); - $feed->link() - ->rel("related") - ->type("application/atom+xml") - ->title("Get photo meta data") - ->href("http://gallery.example.com/photos/23"); - $feed->link() - ->rel("related") - ->type("image/jpeg") - ->title("Download photo") - ->href("http://gallery.example.com/photos/SanFran/sunset.jpg"); - - $feed->entry() - ->id("http://gallery.example.com/comments/32") - ->updated(time()) - ->title("") - ->content("Wow, that's <b>beautiful<b>!", "html") - ->author() - ->name("Jonathan Doe") - ->email("jdoe@example.com") - ->uri("http://gallery.example.com"); - - $xml = $feed->as_xml(); -// file_put_contents("atom-feed.xml", $xml); -// Kohana::log("debug", "{$xml}"); - } - - public function atom_entry_test() { - $entry = new Atom_Entry("entry"); - $entry->id("http://gallery.example.com/comments/32") - ->title("Comment on Ocean Beach Sunset", "text") - ->updated(time()) - ->content("Wow, that's <b>beautiful<b>!", "html") - ->author() - ->name("Jonathan Doe") - ->email("jdoe@example.com") - ->uri("http://gallery.example.com"); - $entry->link() - ->rel("self") - ->href("http://gallery.example.com/comments/32"); - $entry->link() - ->rel("related") - ->type("application/atom+xml") - ->title("Get photo meta data") - ->href("http://gallery.example.com/photos/23"); - $entry->link() - ->rel("related") - ->type("text/html") - ->title("View photo in Gallery") - ->href("http://gallery.example.com/photos/23"); - $entry->link() - ->rel("related") - ->type("image/jpeg") - ->title("Download photo") - ->href("http://gallery.example.com/photos/SanFran/sunset.jpg"); - - $xml = $entry->as_xml(); -// file_put_contents("atom-entry.xml", $xml); -// Kohana::log("debug", "{$xml}"); - } -} -- cgit v1.2.3