1<?php 2require_once 'PHPUnit/Framework.php'; 3require_once dirname(__FILE__) . '/../src/gtAutoload.php'; 4 5class gtVariationTestCaseMethodTest extends PHPUnit_Framework_TestCase { 6 7 public function testTestCase() { 8 9 $f = new gtMethod('DOMDocument','createAttribute'); 10 $f->setArgumentNames(); 11 $f->setArgumentLists(); 12 13 $f->setConstructorArgumentNames(); 14 $f->setConstructorInitStatements(); 15 16 $optSect = new gtOptionalSections(); 17 18 $vtc = gtVariationTestCase::getInstance($optSect, 'method'); 19 $vtc->setUp($f, 1, 'int'); 20 $vtc->constructTestCase(); 21 $fs = $vtc->toString(); 22 23 $this->assertTrue(is_string($fs)); 24 25 } 26} 27?> 28