1<?php
2require_once 'PHPUnit/Framework.php';
3require_once dirname(__FILE__) . '/../src/gtAutoload.php';
4
5class gtBasicTestCaseFunctionTest extends PHPUnit_Framework_TestCase {
6
7
8  public function testTestCase() {
9
10    $f = new gtFunction('cos');
11    $f->setArgumentNames();
12    $f->setArgumentLists();
13    $f->setInitialisationStatements();
14    $optSect = new gtOptionalSections();
15
16    $btc = gtBasicTestCase::getInstance($optSect);
17    $btc->setFunction($f);
18    $btc->constructTestCase();
19
20    $fs = $btc->toString();
21    $this->assertTrue(is_string($fs));
22  }
23}
24?>