ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
TestDICTest.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\DI\ServiceContainer as Container;
21
23{
24 protected function setUp(): void
25 {
27 }
28
29 public function testConstruct(): void
30 {
31 $test_dic = new TestDIC();
32 $this->assertInstanceOf(TestDIC::class, $test_dic);
33 }
34
35 public function testDic(): void
36 {
37 $this->assertInstanceOf(Container::class, TestDIC::dic());
38 }
39}
Dependency injection container for the global as well as for local, component specific containers.
Class ilTestBaseClass.