Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
10 | function testLanguagesFiles() { |
||
11 | $cmd = $GLOBALS['basedir'].'/src/utils/analyse_language_files.pl '.$GLOBALS['basedir'].' 2>&1'; |
||
12 | $return_value = 1; |
||
13 | $output = array(); |
||
14 | exec($cmd, $output, $return_value); |
||
15 | $full_output = implode("\n", $output); |
||
16 | if ($return_value != 0 || preg_match('/[1-9]\s*(missing|incorrect|duplicate) keys/', $full_output)) { |
||
|
|||
17 | echo "<pre>\n$full_output\n</pre>"; |
||
18 | $this->fail(); |
||
19 | } |
||
20 | } |
||
21 | } |
||
22 |