ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSoapFunctionsTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
23 
30 {
31  protected Container $dic;
32 
33  protected function setUp(): void
34  {
35  $this->initDependencies();
36  parent::setUp();
37  }
38 
39  public function testConstruct(): void
40  {
41  $soap_functions = new ilSoapFunctions();
42  $this->assertInstanceOf(ilSoapFunctions::class, $soap_functions);
43  }
44 
45  protected function setGlobalVariable(string $name, $value): void
46  {
47  global $DIC;
48 
49  $GLOBALS[$name] = $value;
50  unset($DIC[$name]);
51  $DIC[$name] = static function (\ILIAS\DI\Container $c) use ($value) {
52  return $value;
53  };
54  }
55 
56  protected function initDependencies(): void
57  {
58  }
59 }
setGlobalVariable(string $name, $value)
$c
Definition: deliver.php:25
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
Unit tests for class ilRPCServerSettings.
$GLOBALS["DIC"]
Definition: wac.php:53
global $DIC
Definition: shib_login.php:22