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