ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LangCheckTest.php
Go to the documentation of this file.
1 <?php
2 require_once __DIR__ . '/LangCheck.php';
3 
5 {
11  public function languageProvider()
12  {
13  $data = array();
14  foreach (glob(__DIR__ . '/../src/geshi/*.php') as $file) {
15  $base = basename($file, '.php');
16  $data[$base] = array($file);
17  }
18  return $data;
19  }
20 
25  public function test_langfile($file)
26  {
27  $check = new LangCheck($file);
28  $result = $check->runChecks();
29  $issues = $check->getIssuesAsString();
30 
31  $this->assertTrue($result, "The following issues were found in $file:\n" . $issues);
32  }
33 }
$result
test_langfile($file)
languageProvider
$base
Definition: index.php:4
Class LangCheck.
Definition: LangCheck.php:9
Create styles array
The data for the language used.
languageProvider()
Read all available language files.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file