PHPUnit_TestCase($name); } function setUp() { require dirname(__FILE__) . '/_config.inc.php'; require_once '../lib/SpellCheck.inc.php'; $this->SpellCheck =& new SpellCheck(PARAM); } function tearDown() { unset($this->SpellCheck); } function test_setparam() { $result = $this->SpellCheck->setparam(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getparam() { $result = $this->SpellCheck->getparam(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_anyerrors() { $result = $this->SpellCheck->anyerrors(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_reseterrorlist() { $result = $this->SpellCheck->reseterrorlist(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_check() { $result = $this->SpellCheck->check(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_suggest() { $result = $this->SpellCheck->suggest(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_add() { $result = $this->SpellCheck->add(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_save() { $result = $this->SpellCheck->save(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getstringsuggestions() { $result = $this->SpellCheck->getstringsuggestions(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_checkstring() { $result = $this->SpellCheck->checkstring(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_getstringhighlighted() { $result = $this->SpellCheck->getstringhighlighted(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_printcorrectionform() { $result = $this->SpellCheck->printcorrectionform(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_anyformcorrections() { $result = $this->SpellCheck->anyformcorrections(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } function test_applyformcorrections() { $result = $this->SpellCheck->applyformcorrections(PARAM); $expected = EXPECTED_VAL; $this->assertEquals($expected, $result); } } // Running the test. $suite = new PHPUnit_TestSuite('SpellCheckTest'); $result = PHPUnit::run($suite); echo $result->toString(); ?>