From 8241180c6ce0cb19255d70a3394f891e08182542 Mon Sep 17 00:00:00 2001
From: Bernhard Posselt
Date: Tue, 27 Jan 2015 09:31:40 +0100
Subject: dont use picofeed submodule
---
vendor/fguillot/picofeed | 1 -
.../picofeed/tests/Syndication/Rss20WriterTest.php | 85 ++++++++++++++++++++++
2 files changed, 85 insertions(+), 1 deletion(-)
delete mode 160000 vendor/fguillot/picofeed
create mode 100644 vendor/fguillot/picofeed/tests/Syndication/Rss20WriterTest.php
(limited to 'vendor/fguillot/picofeed/tests/Syndication/Rss20WriterTest.php')
diff --git a/vendor/fguillot/picofeed b/vendor/fguillot/picofeed
deleted file mode 160000
index 0a1d0d395..000000000
--- a/vendor/fguillot/picofeed
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 0a1d0d3950f7f047dc8fb1d80aa6296e15f306d0
diff --git a/vendor/fguillot/picofeed/tests/Syndication/Rss20WriterTest.php b/vendor/fguillot/picofeed/tests/Syndication/Rss20WriterTest.php
new file mode 100644
index 000000000..2c61b8537
--- /dev/null
+++ b/vendor/fguillot/picofeed/tests/Syndication/Rss20WriterTest.php
@@ -0,0 +1,85 @@
+title = 'My site';
+ $writer->site_url = 'http://boo/';
+ $writer->feed_url = 'http://boo/feed.atom';
+ $writer->author = array(
+ 'name' => 'Me',
+ 'url' => 'http://me',
+ 'email' => 'me@here'
+ );
+
+ $writer->items[] = array(
+ 'title' => 'My article 1',
+ 'updated' => strtotime('-2 days'),
+ 'url' => 'http://foo/bar',
+ 'summary' => 'Super summary',
+ 'content' => 'content
'
+ );
+
+ $writer->items[] = array(
+ 'title' => 'My article 2',
+ 'updated' => strtotime('-1 day'),
+ 'url' => 'http://foo/bar2',
+ 'summary' => 'Super summary 2',
+ 'content' => 'content 2 © 2015
',
+ 'author' => array(
+ 'name' => 'Me too',
+ )
+ );
+
+ $writer->items[] = array(
+ 'title' => 'My article 3',
+ 'url' => 'http://foo/bar3'
+ );
+
+ $generated_output = $writer->execute();
+
+ $expected_output = '
+
+
+ PicoFeed (https://github.com/fguillot/picoFeed)
+ My site
+ My site
+ '.date(DATE_RFC822).'
+
+ http://boo/
+ me@here (Me)
+ -
+ My article 1
+ http://foo/bar
+ http://foo/bar
+ '.date(DATE_RFC822, strtotime('-2 days')).'
+ Super summary
+ content
]]>
+
+ -
+ My article 2
+ http://foo/bar2
+ http://foo/bar2
+ '.date(DATE_RFC822, strtotime('-1 day')).'
+ Super summary 2
+ content 2 © 2015]]>
+
+ -
+ My article 3
+ http://foo/bar3
+ http://foo/bar3
+ '.date(DATE_RFC822).'
+
+
+
+';
+
+ $this->assertEquals($expected_output, $generated_output);
+ }
+}
\ No newline at end of file
--
cgit v1.2.3