Back to index

php5  5.3.10
gtBasicTestCaseMethodTest.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 gtBasicTestCaseMethodTest extends PHPUnit_Framework_TestCase {
00006 
00007 
00008   public function testTestCase() {
00009    
00010     $f = new gtMethod('DOMDocument','createAttribute');
00011     $f->setArgumentNames();
00012     $f->setArgumentLists();
00013     $f->setInitialisationStatements();
00014     $f->setConstructorArgumentNames();
00015     $f->setConstructorInitStatements();
00016 
00017     $optSect = new gtOptionalSections();
00018     $btc = gtBasicTestCaseMethod::getInstance($optSect, 'method');
00019     $btc->setMethod($f);
00020     $btc->constructTestCase();
00021     
00022 
00023     $fs = $btc->toString();
00024     $this->assertTrue(is_string($fs));
00025     
00026   }
00027 }
00028 ?>