Back to index

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