Esempio n. 1
0
 public static function init($fileName)
 {
     if (!is_string($fileName)) {
         throw new RuntimeException('XLite_Tests_MetricWriter constructor execute with wrong $filename argument');
     }
     self::$fp = @fopen($fileName, 'a');
     if (!self::$fp) {
         throw new RuntimeException('Can\'t open ' . $fileName . ' file');
     }
 }