atom_feed_plugin = new WikiPlugin_AtomFeed(); } public function testRunMaxItem() { global $request; $expected_html = <<

This is a fake feed

Foobar Éire
Millenium Spire, Dublin
Geo coordinates: 53.349441 -6.260282
EXPECTED; $html = $this->atom_feed_plugin->run(null, 'url=file://' . dirname(__FILE__) . '/atom-example.xml maxitem=1', $request, '.'); $this->assertEquals($expected_html, trim(html_entity_decode($html->asXML()))); } public function testRunTitleOnly() { global $request; $expected_html = <<

This is a fake feed

Foobar Éire
Foobar Éire 2
Foobar Éire 3
Foobar Éire 4
Foobar Éire 5
EXPECTED; $html = $this->atom_feed_plugin->run(null, 'url=file://' . dirname(__FILE__) . '/atom-example.xml titleonly=true', $request, '.'); $this->assertEquals($expected_html, trim(html_entity_decode($html->asXML()))); } } ?>