ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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, and $data.

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
$data
Definition: bench.php:6

◆ test_langfile()

LangCheckTest::test_langfile (   $file)

languageProvider

Parameters
string$file

Definition at line 25 of file LangCheckTest.php.

References $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

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