PHPUnit_TestCase($name); } function setUp() { require dirname(__FILE__) . '/_config.inc.php'; require_once '../lib/Nav.inc.php'; $this->Nav =& new Nav(PARAM); } function tearDown() { unset($this->Nav); } function test_addpage() { $result = $this->Nav->addpage(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_setfeature() { $result = $this->Nav->setfeature(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_clearpath() { $result = $this->Nav->clearpath(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getfeature() { $result = $this->Nav->getfeature(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_gettitle() { $result = $this->Nav->gettitle(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_printtitle() { $result = $this->Nav->printtitle(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getpath() { $result = $this->Nav->getpath(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_printpath() { $result = $this->Nav->printpath(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getbreadcrumbs() { $result = $this->Nav->getbreadcrumbs(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_printbreadcrumbs() { $result = $this->Nav->printbreadcrumbs(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_currentpage() { $result = $this->Nav->currentpage(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } } // Running the test. $suite = new PHPUnit_TestSuite('NavTest'); $result = PHPUnit::run($suite); echo $result->toString(); ?>