* Copyright 2001-2012 Strangecode, LLC * * This file is part of The Strangecode Codebase. * * The Strangecode Codebase is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your option) * any later version. * * The Strangecode Codebase is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * The Strangecode Codebase. If not, see . */ /** * PHPUnit test case for codebase/lib/PageNumbers.inc.php * * The method skeletons below need to be filled in with * real data so that the tests will run correctly. Replace * all EXPECTED_VAL and PARAM strings with real data. * * Created with PHPUnit_Skeleton on 2005-08-09 */ class PageNumbersTest extends PHPUnit_Framework_TestCase { var $PageNumbers; function PageNumbersTest($name) { $this->PHPUnit_Framework_TestCase($name); } function setUp() { require dirname(__FILE__) . '/_config.inc.php'; require_once '../lib/PageNumbers.inc.php'; $this->PageNumbers =& new PageNumbers(PARAM); } function tearDown() { unset($this->PageNumbers); } function test_setperpage() { $result = $this->PageNumbers->setperpage(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_setpagenumber() { $result = $this->PageNumbers->setpagenumber(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_settotalitems() { $result = $this->PageNumbers->settotalitems(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_calculate() { $result = $this->PageNumbers->calculate(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getlimitsql() { $result = $this->PageNumbers->getlimitsql(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_printperpagelinks() { $result = $this->PageNumbers->printperpagelinks(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getpagenumurl() { $result = $this->PageNumbers->getpagenumurl(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_printpagenumurl() { $result = $this->PageNumbers->printpagenumurl(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getpagenumbersarray() { $result = $this->PageNumbers->getpagenumbersarray(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getpagenumbers() { $result = $this->PageNumbers->getpagenumbers(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_printpagenumbers() { $result = $this->PageNumbers->printpagenumbers(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } }