ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilWorkflowEngineBaseTest.php
Go to the documentation of this file.
1 <?php
2 
7 {
12  protected function setGlobalVariable($name, $value)
13  {
14  global $DIC;
15 
16  $GLOBALS[$name] = $value;
17 
18  unset($DIC[$name]);
19  $DIC[$name] = function ($c) use ($name) {
20  return $GLOBALS[$name];
21  };
22  }
23 
27  protected function setUp()
28  {
29  parent::setUp();
30 
31  $this->setGlobalVariable('ilDB', $this->getMockBuilder('ilDBInterface')->getMock());
32 
33  $this->setGlobalVariable(
34  'ilAppEventHandler',
35  $this->getMockBuilder('ilAppEventHandler')->disableOriginalConstructor()->setMethods(array('raise'))->getMock()
36  );
37 
38  $this->setGlobalVariable(
39  'ilSetting',
40  $this->getMockBuilder('ilSetting')->disableOriginalConstructor()->setMethods(array('delete', 'get', 'set'))->getMock()
41  );
42  }
43 }
Class ilWorkflowEngineBaseTest.
global $DIC
Definition: saml.php:7
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.