Class DIContainerTest.
More...
Class DIContainerTest.
Definition at line 26 of file DIContainerTest.php.
◆ setUp()
ILIAS\DI\DIContainerTest::setUp |
( |
| ) |
|
|
protected |
◆ testIsDependencyAvailableIfAvailable()
ILIAS\DI\DIContainerTest::testIsDependencyAvailableIfAvailable |
( |
| ) |
|
Definition at line 43 of file DIContainerTest.php.
43 : void
44 {
45 $this->DIC["ilCtrl"] = $this->getMockBuilder(\ilCtrl::class)
46 ->disableOriginalConstructor()
47 ->getMock();
48
49 $this->assertTrue($this->DIC->isDependencyAvailable("ctrl"));
50 }
◆ testIsDependencyAvailableIfNotAvailable()
ILIAS\DI\DIContainerTest::testIsDependencyAvailableIfNotAvailable |
( |
| ) |
|
Definition at line 38 of file DIContainerTest.php.
38 : void
39 {
40 $this->assertFalse($this->DIC->isDependencyAvailable("ctrl"));
41 }
◆ $DIC
ILIAS\DI\DIContainerTest::$DIC |
|
protected |
The documentation for this class was generated from the following file: