ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSoapFunctionsTest Class Reference

Unit tests for class ilRPCServerSettings. More...

+ Inheritance diagram for ilSoapFunctionsTest:
+ Collaboration diagram for ilSoapFunctionsTest:

Public Member Functions

 testConstruct ()
 

Protected Member Functions

 setUp ()
 
 setGlobalVariable (string $name, $value)
 
 initDependencies ()
 

Protected Attributes

Container $dic
 

Detailed Description

Unit tests for class ilRPCServerSettings.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 27 of file ilSoapFunctionsTest.php.

Member Function Documentation

◆ initDependencies()

ilSoapFunctionsTest::initDependencies ( )
protected

Definition at line 54 of file ilSoapFunctionsTest.php.

Referenced by setUp().

54  : void
55  {
56  }
+ Here is the caller graph for this function:

◆ setGlobalVariable()

ilSoapFunctionsTest::setGlobalVariable ( string  $name,
  $value 
)
protected

Definition at line 43 of file ilSoapFunctionsTest.php.

References $c, $DIC, $GLOBALS, and $name.

43  : 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  }
$c
Definition: cli.php:38
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
global $DIC
Definition: feed.php:28
if($format !==null) $name
Definition: metadata.php:247
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64

◆ setUp()

ilSoapFunctionsTest::setUp ( )
protected

Definition at line 31 of file ilSoapFunctionsTest.php.

References initDependencies().

31  : void
32  {
33  $this->initDependencies();
34  parent::setUp();
35  }
+ Here is the call graph for this function:

◆ testConstruct()

ilSoapFunctionsTest::testConstruct ( )

Definition at line 37 of file ilSoapFunctionsTest.php.

37  : void
38  {
39  $soap_functions = new ilSoapFunctions();
40  $this->assertInstanceOf(ilSoapFunctions::class, $soap_functions);
41  }

Field Documentation

◆ $dic

Container ilSoapFunctionsTest::$dic
protected

Definition at line 29 of file ilSoapFunctionsTest.php.


The documentation for this class was generated from the following file: