feed = new PlanetFeed('Test Feed', 'http://localhost:8081/tests/feeds/feed-rss2.rss', 'http://localhost:8081/tests/', ''); } protected function _after() { unset($this->feed); } public function testNo() { //print_r($this->feed); $this->assertEquals(true, true); } public function testItemsContent() { if (!$this->feed->init()) { $this->fail(sprintf('Failed to init feed: %s', $this->feed->error)); } $items = $this->feed->get_items(); $this->assertEquals(5, count($items)); $expectedContents = [ '
Blabla.
', "
Blabla. Ho. Ho. Ho.
", '
Image relative:
', '
Audio relatif:
', //'
Video relative:
' ]; foreach ($expectedContents as $ix => $value) { $this->assertEquals($value, $items[$ix]->get_content()); } } }