'Site title',
'description' => 'Optional description',
'site_url' => 'http://blabla.fr/',
),
array(
'title' => 'Site title',
'description' => 'Optional description',
'site_url' => 'http://petitcodeur.fr/',
'feed_url' => 'http://petitcodeur.fr/feed.xml',
)
);
$export = new Export($feeds);
$opml = $export->execute();
$expected = '
OPML Export
';
$this->assertEquals($expected, $opml);
}
public function testCategoryOuput()
{
$feeds = array(
'my category' => array(
array(
'title' => 'Site title',
'description' => 'Optional description',
'site_url' => 'http://blabla.fr/',
),
array(
'title' => 'Site title',
'description' => 'Optional description',
'site_url' => 'http://petitcodeur.fr/',
'feed_url' => 'http://petitcodeur.fr/feed.xml',
)
),
'another category' => array(
array(
'title' => 'Site title',
'description' => 'Optional description',
'site_url' => 'http://youpi.ici/',
'feed_url' => 'http://youpi.ici/feed.xml',
)
)
);
$export = new Export($feeds);
$opml = $export->execute();
$expected = '
OPML Export
';
$this->assertEquals($expected, $opml);
}
}