Back to index

php5  5.3.10
gtErrorTestCaseFunctionTest.php
Go to the documentation of this file.
00001 <?php
00002 require_once 'PHPUnit/Framework.php';
00003 require_once dirname(__FILE__) . '/../src/gtAutoload.php';
00004 
00005 class gtErrorTestCaseFunctionTest extends PHPUnit_Framework_TestCase {
00006 
00007 
00008   public function testTestCase() {
00009    
00010     $f = new gtFunction('cos');
00011     $f->setArgumentNames();
00012     $f->setArgumentLists();
00013     $f->setInitialisationStatements();
00014     
00015     $optSect = new gtOptionalSections();
00016     
00017     $btc = gtErrorTestCase::getInstance($optSect);
00018     $btc->setFunction($f);
00019     $btc->constructTestCase();
00020     
00021     
00022     $fs = $btc->toString();
00023     $this->assertTrue(is_string($fs));
00024     
00025   }
00026   
00027 }
00028 ?>