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

Commit

Permalink
Merge branch 'hotfix/feed-tests' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	library/Zend/Version/Version.php
	tests/ZendTest/Feed/Writer/FeedTest.php
  • Loading branch information
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/Writer/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1018,14 +1018,13 @@ public function testExportRss()
<channel>
<title>foo</title>
<description>bar</description>
<generator>Zend_Feed_Writer %VERSION% (http://framework.zend.com)</generator>
<generator>Zend_Feed_Writer %version% (http://framework.zend.com)</generator>
<link>http://www.example.org</link>
</channel>
</rss>

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

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

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

Expand Down

0 comments on commit 2adc6bf

Please sign in to comment.