gtVariationTestCaseMethodTest.php 671 B

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