/** * Tests the JFeed::removeEntry method. * * @return void * * @since 3.0 * * @covers JFeed::removeEntry */ public function testRemoveEntry() { $expected = new JFeedEntry(); $entries = array(1 => $expected); TestReflection::setValue($this->object, 'entries', $entries); $this->object->removeEntry($expected); $entries = TestReflection::getValue($this->object, 'entries'); $this->assertFalse(in_array($expected, $entries)); $this->assertInstanceOf('JFeed', $this->object->removeEntry($expected)); }