ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBuddySystemBaseTest Class Reference
+ Inheritance diagram for ilBuddySystemBaseTest:
+ Collaboration diagram for ilBuddySystemBaseTest:

Protected Member Functions

 setGlobalVariable (string $name, $value)
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 12 of file ilBuddySystemBaseTest.php.

Member Function Documentation

◆ setGlobalVariable()

ilBuddySystemBaseTest::setGlobalVariable ( string  $name,
  $value 
)
protected
Parameters
string$name
mixed$value

Definition at line 18 of file ilBuddySystemBaseTest.php.

References Vendor\Package\$c, $DIC, $GLOBALS, and $name.

Referenced by ilBuddyListTest\setUp(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested(), ilBuddyListTest\testInstanceCanBeCreatedByGlobalUserObject(), ilBuddyListTest\testInstanceCannotBeCreatedByAnonymousGlobalUserObject(), ilBuddyListTest\testRelationCannotBeRequestedForUnknownUserAccounts(), ilBuddyListTest\testRelationRequestCanBeApprovedByTheRelationTarget(), ilBuddyListTest\testRelationRequestCanBeIgnoredByTheRelationTarget(), ilBuddyListTest\testRelationRequestCannotBeApprovedByTheRelationOwner(), ilBuddyListTest\testRelationRequestCannotBeIgnoredByTheRelationOwner(), and ilBuddyListTest\testRepositoryIsEnquiredOnlyOnceToFetchRelationsWhenCalledImplicitly().

18  : void
19  {
20  global $DIC;
21 
22  if (!$DIC) {
23  $DIC = new Container();
24  }
25 
26  $GLOBALS[$name] = $value;
27 
28  unset($DIC[$name]);
29  $DIC[$name] = function ($c) use ($name) {
30  return $GLOBALS[$name];
31  };
32  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:17
if($format !==null) $name
Definition: metadata.php:230
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
$DIC
Definition: xapitoken.php:46
+ Here is the caller graph for this function:

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