Back to index

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