public function testReturnAllAvailableParsers()
 {
     $parsers = Modules\SiSPS\ParserFactory::ReturnAllAvailableParsers();
     $this->assertTrue(count($parsers) > 3);
     $RSSTypes = $parsers[0]->ListSubTypes();
     $this->assertEquals("Blogs", $RSSTypes[0]);
 }
Ejemplo n.º 2
0
 /**
  * Tests that the ParserFactory can return an instance of
  * the TestParser object when given the correct parameters.
  */
 public function testGetParserWithValidTestTypeParam()
 {
     $parser = Modules\SiSPS\ParserFactory::GetParser("Test");
     $this->assertEquals(true, isset($parser));
 }