Lines Matching full:file
20 foreach($files as $file){
21 // try to load the file
22 include $file;
24 $this->assertTrue(is_array($lang), $file);
27 $this->checkUgly($file);
32 * Checks if the file contains any ugly things like leading whitespace, BOM or trailing
35 * @param $file
38 private function checkUgly($file){ argument
39 $content = rtrim(file_get_contents($file));
41 throw new Exception("$file does not start with '<?php' - check for BOM");
44 throw new Exception("$file ends with '?>' - remove it!");