Back to index

php5  5.3.10
gtTestCaseWriter.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class gtTestCaseWriter {
00008   
00009   public static function write($name, $string, $type, $count = 0) {
00010     if ($type  == 'b') {
00011     $fileName = $name."_basic.phpt";
00012     }
00013     
00014     if ($type  == 'e') {
00015      $fileName = $name."_error.phpt";
00016     }
00017     
00018     if ($type  == 'v') {
00019       $fileName = $name."_variation".$count.".phpt";
00020     }
00021     
00022     $fh = fopen($fileName, 'w');
00023     fwrite ($fh, $string);
00024     fclose($fh);
00025   }
00026 }
00027 ?>