ILIAS  release_8 Revision v8.24
ilSoapFunctionsTest.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
19use PHPUnit\Framework\TestCase;
21
27class ilSoapFunctionsTest extends TestCase
28{
29 protected Container $dic;
30
31 protected function setUp() : void
32 {
33 $this->initDependencies();
34 parent::setUp();
35 }
36
37 public function testConstruct() : void
38 {
39 $soap_functions = new ilSoapFunctions();
40 $this->assertInstanceOf(ilSoapFunctions::class, $soap_functions);
41 }
42
43 protected function setGlobalVariable(string $name, $value) : void
44 {
45 global $DIC;
46
47 $GLOBALS[$name] = $value;
48 unset($DIC[$name]);
49 $DIC[$name] = static function (\ILIAS\DI\Container $c) use ($value) {
50 return $value;
51 };
52 }
53
54 protected function initDependencies() : void
55 {
56 }
57}
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
Unit tests for class ilRPCServerSettings.
setGlobalVariable(string $name, $value)
$c
Definition: cli.php:38
global $DIC
Definition: feed.php:28
if($format !==null) $name
Definition: metadata.php:247