19 declare(strict_types=1);
21 require_once __DIR__ .
'/ilTestBaseTestCaseTrait.php';
39 protected function setUp(): void
43 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
45 $DIC = $this->getMockBuilder(Container::class)->onlyMethods([
'uiService'])->getMock();
46 $DIC->method(
'uiService')->willReturn($this->createMock(ilUIService::class));
48 $this->addGlobal_ilAccess();
49 $this->addGlobal_tpl();
50 $this->addGlobal_ilDB();
51 $this->addGlobal_ilUser();
52 $this->addGlobal_ilias();
53 $this->addGlobal_ilErr();
54 $this->addGlobal_tree();
55 $this->addGlobal_lng();
56 $this->addGlobal_ilAppEventHandler();
57 $this->addGlobal_objDefinition();
58 $this->addGlobal_refinery();
59 $this->addGlobal_http();
60 $this->addGlobal_fileDelivery();
61 $this->addGlobal_ilComponentFactory();
62 $this->addGlobal_ilComponentRepository();
63 $this->addGlobal_uiFactory();
64 $this->addGlobal_uiRenderer();
65 $this->addGlobal_uiService();
66 $this->addGlobal_static_url();
67 $this->addGlobal_upload();
68 $this->addGlobal_ilCtrl();
69 $this->addGlobal_ilBench();
70 $this->addGlobal_ilSetting();
72 $this->defineGlobalConstants();
86 public static function callMethod($obj, $name, array $args = [])
88 return (
new ReflectionClass($obj))->getMethod($name)->invokeArgs($obj, $args);
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static callMethod($obj, $name, array $args=[])