ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LangCheckTest Class Reference
+ Inheritance diagram for LangCheckTest:
+ Collaboration diagram for LangCheckTest:

Public Member Functions

 languageProvider ()
 Read all available language files. More...
 
 test_langfile ($file)
 languageProvider More...
 

Detailed Description

Definition at line 4 of file LangCheckTest.php.

Member Function Documentation

◆ languageProvider()

LangCheckTest::languageProvider ( )

Read all available language files.

Returns
array

Definition at line 11 of file LangCheckTest.php.

References $base, $data, $file, and array.

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  }
$base
Definition: index.php:4
Create styles array
The data for the language used.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file

◆ test_langfile()

LangCheckTest::test_langfile (   $file)

languageProvider

Parameters
string$file

Definition at line 25 of file LangCheckTest.php.

References $file, and $result.

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  }
$result
Class LangCheck.
Definition: LangCheck.php:9
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file

The documentation for this class was generated from the following file: