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