Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/Writer/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use DateTime;
use Zend\Feed\Writer;
use Zend\Feed\Writer\Feed;
use Zend\Version\Version;

/**
* @category Zend
Expand Down Expand Up @@ -1017,12 +1018,13 @@ public function testExportRss()
<channel>
<title>foo</title>
<description>bar</description>
<generator>Zend_Feed_Writer 2.0.1 (http://framework.zend.com)</generator>
<generator>Zend_Feed_Writer %version% (http://framework.zend.com)</generator>
<link>http://www.example.org</link>
</channel>
</rss>

EOT;
$feed = str_replace('%version%', Version::VERSION, $feed);
$this->assertEquals($feed, $export);
}

Expand All @@ -1038,11 +1040,12 @@ public function testExportRssIgnoreExceptions()
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<generator>Zend_Feed_Writer 2.0.1 (http://framework.zend.com)</generator>
<generator>Zend_Feed_Writer %version% (http://framework.zend.com)</generator>
</channel>
</rss>

EOT;
$feed = str_replace('%version%', Version::VERSION, $feed);
$this->assertEquals($feed, $export);
}

Expand Down

0 comments on commit c790aed

Please sign in to comment.