Exemplo n.º 1
0
 function testGetTextinputs()
 {
     $r = new XML_RSS(dirname(__FILE__) . '/test.rss');
     $r->parse();
     $expected = array('title' => 'Search Slashdot', 'description' => 'Search Slashdot stories', 'name' => 'query', 'link' => 'http://slashdot.org/search.pl');
     $actual = $r->getTextinputs();
     $this->assertEquals($expected, $actual);
 }