Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a6a76c5fd0
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.617 kb
<?php
require_once 'XML_Feed_Parser_TestCase.php';
class xmlbase extends XML_Feed_Parser_TestCase
{
function test_Base() {
$sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
$file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . "xmlbase.xml");
try {
$feed = new XML_Feed_Parser($file, false, true, true);
} catch (XML_Feed_Parser_Exception $e) {
$this->assertTrue(false);
}
$entry = $feed->getEntryByOffset(0);
$this->assertEquals($entry->link, 'http://www.tbray.org/ongoing/When/200x/2006/02/17/FSS');
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.