ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
LangCheckTest.php
Go to the documentation of this file.
1
<?
php
2
require_once __DIR__ .
'/LangCheck.php'
;
3
4
class
LangCheckTest
extends
PHPUnit_Framework_TestCase
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
}
LangCheckTest
Definition:
LangCheckTest.php:4
$result
$result
Definition:
CleanUpTest.php:463
LangCheckTest\test_langfile
test_langfile($file)
languageProvider
Definition:
LangCheckTest.php:25
PHPUnit_Framework_TestCase
$base
$base
Definition:
index.php:4
LangCheck
Class LangCheck.
Definition:
LangCheck.php:9
LangCheckTest\languageProvider
languageProvider()
Read all available language files.
Definition:
LangCheckTest.php:11
php
$data
$data
Definition:
bench.php:6
libs
composer
vendor
geshi
geshi
tests
LangCheckTest.php
Generated on Thu Jan 16 2025 19:01:40 for ILIAS by
1.8.13 (using
Doxyfile
)