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