gtErrorTestCaseFunctionTest.php 596 B

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