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