ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
DIContainerTest.php
Go to the documentation of this file.
1<?php
2namespace ILIAS\DI;
3
4require_once('./libs/composer/vendor/autoload.php');
5
10{
11
15 protected $DIC;
16
17 protected function setUp()
18 {
19 $this->DIC = new Container();
20 }
21
23 {
24 $this->assertFalse($this->DIC->isDependencyAvailable("ctrl"));
25 }
26
28 {
29 $this->DIC["ilCtrl"] = function () {
30 };
31 $this->assertTrue($this->DIC->isDependencyAvailable("ctrl"));
32 }
33}
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:17
Class DIContainerTest.
Class HTTPServicesTest.