Back to index

php5  5.3.10
gtBasicTestCase.php
Go to the documentation of this file.
00001 <?php
00002 
00007 abstract class gtBasicTestCase extends gtTestCase {
00008 
00009   protected $subject;
00010 
00011 
00018   public static function getInstance($optionalSections, $type = 'function') {
00019     if($type == 'function') {
00020       return new gtBasicTestCaseFunction($optionalSections);
00021     }
00022     if($type =='method') {
00023       return new gtBasicTestCaseMethod($optionalSections);
00024     }
00025   }
00026   
00027   public function constructSubjectCalls() {
00028         $this->argInit();
00029         $this->subjectCalls();
00030   }
00031   
00032   public function addBasicEcho() {
00033     $this->testCase[] = "echo \"*** Test by calling method or function with its expected arguments ***\\n\";";
00034     $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase );
00035   }
00036 }
00037 ?>