ILIAS
release_4-4 Revision
◀ ilDoc Overview
ilGlobalSuite.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
14
class
ilGlobalSuite
extends
PHPUnit_Framework_TestSuite
15
{
16
public
static
function
suite
()
17
{
18
$suite
=
new
ilGlobalSuite
();
19
20
echo
"\n"
;
21
22
// scan Modules and Services directories
23
$basedirs = array(
"Services"
,
"Modules"
);
24
25
foreach
($basedirs as $basedir)
26
{
27
// read current directory
28
$dir = opendir($basedir);
29
30
while
(
$file
= readdir($dir))
31
{
32
if
(
$file
!=
"."
&&
$file
!=
".."
&& is_dir($basedir.
"/"
.
$file
))
33
{
34
$suite_path =
35
$basedir.
"/"
.
$file
.
"/test/il"
.$basedir.$file.
"Suite.php"
;
36
if
(is_file($suite_path))
37
{
38
include_once($suite_path);
39
40
$name =
"il"
.$basedir.$file.
"Suite"
;
41
$s =
new
$name();
42
echo
"Adding Suite: "
.$name.
"\n"
;
43
$suite
->addTest($s->suite());
44
//$suite->addTestSuite("ilSettingTest");
45
}
46
}
47
}
48
}
49
echo
"\n"
;
50
51
return
$suite
;
52
}
53
}
54
?>
$file
print $file
Definition:
HFile_ueconv.php:128
$suite
$suite
Definition:
CleanUpTest.php:406
PHPUnit_Framework_TestSuite
ilGlobalSuite
This is the global ILIAS test suite.
Definition:
ilGlobalSuite.php:14
ilGlobalSuite\suite
static suite()
Definition:
ilGlobalSuite.php:16
Services
PHPUnit
test
ilGlobalSuite.php
Generated on Mon Dec 21 2020 19:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)