public function testArguments2() { $f = new gtFunction('version_compare'); $f->setArgumentNames(); $m = $f->getMandatoryArgumentNames(); $o = $f->getOptionalArgumentNames(); $this->assertEquals($m[0], 'ver1'); $this->assertEquals($m[1], 'ver2'); $this->assertEquals($o[0], 'oper'); }
public function testTestCase2() { $f = new gtFunction('date_sunrise'); $f->setArgumentNames(); $f->setArgumentLists(); $a = $f->getMandatoryArgumentNames(); $optSect = new gtOptionalSections(); $vtc = gtVariationTestCase::getInstance($optSect); $vtc->setUp($f, 6, 'int'); $vtc->constructTestCase(); $fs = $vtc->toString(); $this->assertTrue(is_string($fs)); }