Lines Matching refs:method

56   $method = new gtMethod($options->getOption('c'), $options->getOption('m'));
58 $method->setArgumentNames();
59 $method->setArgumentLists();
60 $method->setInitialisationStatements();
62 $method->setConstructorArgumentNames();
63 $method->setConstructorInitStatements();
64 $method->setConstructorArgumentList();
78 $testCase = gtBasicTestCase::getInstance($optionalSections, 'method');
79 $testCase->setMethod($method);
91 $testCase = gtErrorTestCase::getInstance($optionalSections, 'method');
92 $testCase->setMethod($method);
106 $testCaseContainer = gtVariationContainer::getInstance($optionalSections, 'method');
107 $testCaseContainer->setMethod($method);
246 The method name is not a valid PHP method name.
247 Check that the extension containing the method is loaded.
262 -m method name ....................Name of method, eg createAttribute
271 You have given a class name but not supplied a method name to test.
272 The method name is required.
275 Please supply a function or method name to be tested.
401 * Autoload method
558 * If use has requested a class check that method is specified
581 * Check that either a method or a function is specified
601 * Check that teh method name is valid
611 foreach($methods as $method) {
612 if($clo->getOption('m') == $method->getName()) {
831 * Class for method under test (see gtFunction for non-OO tests)
844 * Construct gtMethod object from the class and method names
871 * Set the names of the mandatory and optional arguments to the method
900 * Return the name of the method
1136 * Construct the list of all possible ways to call the subject (function or method)
1159 * Return the array of all possible sets of method/function arguments
1206 * Container for all possible variation test cases for a method
1210 protected $method;
1219 * Sets the method to be tested
1221 * @param gtMethod $method
1223 public function setMethod(gtMethod $method) {
1224 $this->method = $method;
1234 …$numberOfArguments = count($this->method->getMandatoryArgumentNames()) + count($this->method->getO…
1240 $testCase = gtVariationTestCase::getInstance($this->optionalSections, 'method');
1241 $testCase->setUp($this->method, $i, $d);
1261 * Set the method
1263 * @param gtMethod $method
1265 public function setMethod($method) {
1266 $this->subject = $method;
1285 …$this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getNa…
1313 * Return instance of either method or function error test case
1323 if($type =='method') {
1347 …$this->testCase[] = "echo \"*** Test by calling method or function with incorrect numbers of argum…
1361 * The subject of the test, may be either a function (gtFunction) or a method (gtMethod)
1481 * Add function or method initilaisation statements to the test case
1806 * Error test case for a PHP method
1814 private $method;
1817 * Set the method name
1819 * @param string $method
1821 public function setMethod($method) {
1822 $this->subject = $method;
1845 …$this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getNam…
1850 // Construct the argument list to pass to the method being tested
1873 * Returns an instance of a test case for a method or a function
1882 if($type =='method') {
1893 …$this->testCase[] = "echo \"*** Test by calling method or function with its expected arguments ***…
1919 * Return an instance of a containers for either function or method tests
1929 if($type =='method') {
1961 * Returns an instance of a test case for a method or a function
1971 if($type =='method') {
2007 * Class for variation tests for a PHP method
2023 * @param gtMethod $method
2027 public function setUp(gtMethod $method, $argumentNumber, $variationData) {
2028 $this->subject = $method;
2053 …$this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getNam…
2058 // Construct the argument list to pass to the method being tested