ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
$data
$data
Definition:
test-settings.sample.php:14
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
LangCheckTest\languageProvider
languageProvider()
Read all available language files.
Definition:
LangCheckTest.php:11
$file
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
Definition:
rename-config.php:43
libs
composer
vendor
geshi
geshi
tests
LangCheckTest.php
Generated on Sat Jan 18 2025 19:01:04 for ILIAS by
1.8.13 (using
Doxyfile
)