Back to index

php5  5.3.10
gtBasicTestCaseFunctionTest.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 gtBasicTestCaseFunctionTest 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     $optSect = new gtOptionalSections();
00015     
00016     $btc = gtBasicTestCase::getInstance($optSect);
00017     $btc->setFunction($f);
00018     $btc->constructTestCase();
00019 
00020     $fs = $btc->toString();
00021     $this->assertTrue(is_string($fs));
00022   }
00023 }
00024 ?>