1<?php 2require_once 'PHPUnit/Framework.php'; 3require_once dirname(__FILE__) . '/../src/gtAutoload.php'; 4 5class gtErrorTestCaseFunctionTest extends PHPUnit_Framework_TestCase { 6 7 8 public function testTestCase() { 9 10 $f = new gtFunction('cos'); 11 $f->setArgumentNames(); 12 $f->setArgumentLists(); 13 $f->setInitialisationStatements(); 14 15 $optSect = new gtOptionalSections(); 16 17 $btc = gtErrorTestCase::getInstance($optSect); 18 $btc->setFunction($f); 19 $btc->constructTestCase(); 20 21 22 $fs = $btc->toString(); 23 $this->assertTrue(is_string($fs)); 24 25 } 26 27} 28?> 29