Lines Matching refs:testCase
78 $testCase = gtBasicTestCase::getInstance($optionalSections, 'method');
79 $testCase->setMethod($method);
81 $testCase = gtBasicTestCase::getInstance($optionalSections);
82 $testCase->setFunction($function);
85 $testCase->constructTestCase();
86 gtTestCaseWriter::write($name, $testCase->toString(), 'b');
91 $testCase = gtErrorTestCase::getInstance($optionalSections, 'method');
92 $testCase->setMethod($method);
94 $testCase = gtErrorTestCase::getInstance($optionalSections);
95 $testCase->setFunction($function);
98 $testCase->constructTestCase();
99 gtTestCaseWriter::write($name, $testCase->toString(), 'e');
1240 $testCase = gtVariationTestCase::getInstance($this->optionalSections, 'method');
1241 $testCase->setUp($this->method, $i, $d);
1242 $testCase->constructTestCase();
1243 $this->variationTests[] = $testCase->toString();
1284 $this->testCase[] = "--TEST--";
1285 …$this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getNa…
1293 $this->testCase[] = "var_dump( \$class->".$this->subject->getName()."( ".$list." ) );";
1294 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1296 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1341 $this->testCase[] = "\$extra_arg = ";
1347 …$this->testCase[] = "echo \"*** Test by calling method or function with incorrect numbers of argum…
1348 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1373 protected $testCase;
1391 foreach($this->testCase as $line) {
1405 return $this->testCase;
1451 $this->testCase[] = "--FILE--";
1452 $this->testCase[] = "<?php";
1453 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1464 $this->testCase[] = $statement;
1475 $this->testCase[] = "\$class = new ".$this->subject->getClassName()."( ".$constructorList." );";
1476 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1487 $this->testCase[] = $statement;
1489 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1498 $this->testCase[] = "?>";
1507 $this->testCase[] = "--SKIPIF--";
1508 $this->testCase[] = "<?php";
1513 $this->testCase = gtCodeSnippet::append('skipifwin', $this->testCase);
1516 $this->testCase = gtCodeSnippet::append('skipifnotwin', $this->testCase);
1520 $this->testCase = gtCodeSnippet::append('skipif64b', $this->testCase);
1524 $this->testCase = gtCodeSnippet::append('skipifnot64b', $this->testCase);
1530 …$this->testCase[] = "if (!extension_loaded('$ext')) die ('skip $ext extension not available in thi…
1532 $this->testCase[] = "?>";
1541 $this->testCase[] = "--INI--";
1542 $this->testCase[] = "";
1551 $this->testCase[] = "--CLEAN--";
1552 $this->testCase[] = "<?php";
1553 $this->testCase[] = "?>";
1562 $this->testCase[] = "===DONE===";
1571 $this->testCase[] = "--EXPECTF--";
1573 $this->testCase[] = '===DONE===';
1621 $this->testCase[] = "--TEST--";
1622 …$this->testCase[] = "Test function ".$this->subject->getName()."() by calling it with its expected…
1635 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1636 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
1638 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1681 $this->testCase[] = "--TEST--";
1682 …$this->testCase[] = "Test function ".$this->subject->getName()."() by calling it more than or less…
1688 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1689 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
1692 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1693 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
1694 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1707 protected $testCase;
1742 $this->testCase[] = "--TEST--";
1743 …$this->testCase[] = "Test function ".$this->subject->getName()."() by substituting argument ".$thi…
1748 $this->testCase = gtCodeSnippet::append('loopStart', $this->testCase);
1756 $this->testCase[] = " var_dump(".$this->subject->getName()."( ".$list." ) );";
1757 $this->testCase = gtCodeSnippet::append('loopClose', $this->testCase);
1795 $testCase = gtVariationTestCase::getInstance($this->optionalSections);
1796 $testCase->setUp($this->function, $i, $d);
1797 $testCase->constructTestCase();
1798 $this->variationTests[] = $testCase->toString();
1844 $this->testCase[] = "--TEST--";
1845 …$this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getNam…
1852 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1853 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
1856 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1857 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );";
1893 …$this->testCase[] = "echo \"*** Test by calling method or function with its expected arguments ***…
1894 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
1981 $this->testCase[] = $statements[$i];
1984 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1988 $this->testCase = gtCodeSnippet::append($this->variationData, $this->testCase);
1989 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
1999 …$this->testCase[] = "echo \"*** Test substituting argument ".$this->argumentNumber." with ".$this-…
2000 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
2014 protected $testCase;
2052 $this->testCase[] = "--TEST--";
2053 …$this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getNam…
2057 $this->testCase = gtCodeSnippet::append('loopStart', $this->testCase);
2064 $this->testCase[] = " var_dump(\$class->".$this->subject->getName()."( ".$list." ) );";
2065 $this->testCase = gtCodeSnippet::append('loopClose', $this->testCase);