-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /proc/thread-self/root/usr/src/php/scripts/dev/generate-phpt/src/
File Upload :
Current File : //proc/thread-self/root/usr/src/php/scripts/dev/generate-phpt/src/gtTestCaseWriter.php

<?php

/**
 * Writes a single test case to a file
 *
 */
class gtTestCaseWriter {
  
  public static function write($name, $string, $type, $count = 0) {
    if ($type  == 'b') {
    $fileName = $name."_basic.phpt";
    }
    
    if ($type  == 'e') {
     $fileName = $name."_error.phpt";
    }
    
    if ($type  == 'v') {
      $fileName = $name."_variation".$count.".phpt";
    }
    
    $fh = fopen($fileName, 'w');
    fwrite ($fh, $string);
    fclose($fh);
  }
}
?>

Copyright © 2017 || Recoded By Mr.Bumblebee