14 PHPUnit_Framework_Error_Deprecated::$enabled =
false;
16 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
17 ilUnitUtil::performInitialisation();
23 public function test_DIC($global_name, $class_name)
27 $this->assertInstanceOf($class_name,
$GLOBALS[$global_name]);
28 $this->assertInstanceOf($class_name, $DIC[$global_name]);
29 $this->assertSame(
$GLOBALS[$global_name], $DIC[$global_name]);
39 $service = $getter($DIC);
40 $this->assertInstanceOf($class_name, $service);
46 return array( array(
"ilIliasIniFile",
"ilIniFile")
47 , array(
"ilCtrl",
"ilCtrl")
48 , array(
"tree",
"ilTree")
49 , array(
"ilLog",
"ilLogger")
50 , array(
"ilDB",
"ilDBInterface")
56 return array( array(
"ilDBInterface",
function (
$DIC) {
57 return $DIC->database();
59 , array(
"ilCtrl",
function (
$DIC) {
62 , array(
"ilObjUser",
function (
$DIC) {
65 , array(
"ilRbacSystem",
function (
$DIC) {
66 return $DIC->rbac()->system();
68 , array(
"ilRbacAdmin",
function (
$DIC) {
69 return $DIC->rbac()->admin();
71 , array(
"ilRbacReview",
function (
$DIC) {
72 return $DIC->rbac()->review();
74 , array(
"ilAccess",
function (
$DIC) {
75 return $DIC->access();
77 , array(
"ilTree",
function (
$DIC) {
78 return $DIC->repositoryTree();
80 , array(
"ilLanguage",
function (
$DIC) {
81 return $DIC->language();
89 , array(
"ilLogger",
function (
$DIC) {
90 return $DIC->logger()->root();
92 , array(
"ilLogger",
function (
$DIC) {
93 return $DIC->logger()->grp();
95 , array(
"ilLogger",
function (
$DIC) {
96 return $DIC->logger()->crs();
98 , array(
"ilLogger",
function (
$DIC) {
99 return $DIC->logger()->tree();
TestCase for the ilContext needsInstalledILIAS.
test_DIC_getters($class_name, $getter)
getterProvider
test_DIC($global_name, $class_name)
globalsProvider
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.