/**
  * Return the static value.
  *
  * @return  mixed
  *
  * @see     JFeedParser::parse()
  * @since   12.3
  */
 public function parse()
 {
     if (is_null(self::$parseReturn)) {
         return parent::parse();
     }
     $return = self::$parseReturn;
     self::$parseReturn = null;
     return $return;
 }
 /**
  * Tests JFeedParser::registerNamespace() with an expected failure.  Cannot register a handler
  * that isn't an instance of JFeedParserNamespace.
  *
  * @return  void
  *
  * @since   3.0
  *
  * @covers  JFeedParser::registerNamespace
  * @expectedException  PHPUnit_Framework_Error
  */
 public function testRegisterNamespaceWithObject()
 {
     $this->object->registerNamespace('foo', new stdClass());
 }
 /**
  * Tests JFeedFactory::getFeed() with a feed parser.
  *
  * @return  void
  *
  * @since   12.3
  */
 public function testGetFeedMockParser()
 {
     $this->_instance->registerParser('myfeed', 'JFeedParserMock', true);
     JFeedParserMock::$parseReturn = 'test';
     $this->assertEquals($this->_instance->getFeed(JPATH_TESTS . '/tmp/test.myfeed.feed'), 'test');
 }
 /**
  * Tests JFeedFactory::getFeed() with a feed parser.
  *
  * @return  void
  *
  * @since   3.0
  *
  * @covers  JFeedFactory::getFeed
  */
 public function testGetFeedMockParser()
 {
     // Test unexpectedly fails currently
     $this->markTestSkipped('Test unexpectedly fails currently');
     $this->object->registerParser('myfeed', 'JFeedParserMock', true);
     JFeedParserMock::$parseReturn = 'test';
     $this->assertEquals($this->object->getFeed(JPATH_BASE . '/test.myfeed.feed'), 'test');
 }