diff options
Diffstat (limited to 'scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php')
-rw-r--r-- | scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php b/scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php new file mode 100644 index 0000000..5b72fcc --- /dev/null +++ b/scripts/dev/generate-phpt/tests/gtErrorTestCaseFunctionTest.php @@ -0,0 +1,28 @@ +<?php +require_once 'PHPUnit/Framework.php'; +require_once dirname(__FILE__) . '/../src/gtAutoload.php'; + +class gtErrorTestCaseFunctionTest extends PHPUnit_Framework_TestCase { + + + public function testTestCase() { + + $f = new gtFunction('cos'); + $f->setArgumentNames(); + $f->setArgumentLists(); + $f->setInitialisationStatements(); + + $optSect = new gtOptionalSections(); + + $btc = gtErrorTestCase::getInstance($optSect); + $btc->setFunction($f); + $btc->constructTestCase(); + + + $fs = $btc->toString(); + $this->assertTrue(is_string($fs)); + + } + +} +?>
\ No newline at end of file |