ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ExcelTest Class Reference
+ Inheritance diagram for ExcelTest:
+ Collaboration diagram for ExcelTest:

Public Member Functions

 testCoordByColumnAndRow ()
 

Protected Member Functions

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

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file ExcelTestTBD.php.

Member Function Documentation

◆ setGlobalVariable()

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

Definition at line 26 of file ExcelTestTBD.php.

References $c, $DIC, and $GLOBALS.

Referenced by setUp().

26  : void
27  {
28  global $DIC;
29 
30  $GLOBALS[$name] = $value;
31 
32  unset($DIC[$name]);
33  $DIC[$name] = static function (\ILIAS\DI\Container $c) use ($value) {
34  return $value;
35  };
36  }
$c
Definition: deliver.php:25
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
$GLOBALS["DIC"]
Definition: wac.php:53
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

◆ setUp()

ExcelTest::setUp ( )
protected

Definition at line 38 of file ExcelTestTBD.php.

References $dic, $GLOBALS, and setGlobalVariable().

38  : void
39  {
40  parent::setUp();
41  $dic = new ILIAS\DI\Container();
42  $GLOBALS['DIC'] = $dic;
43 
44  $languageMock = $this->getMockBuilder(ilLanguage::class)
45  ->disableOriginalConstructor()
46  ->getMock();
47  $this->setGlobalVariable(
48  "lng",
49  $languageMock
50  );
51  }
$GLOBALS["DIC"]
Definition: wac.php:53
setGlobalVariable(string $name, $value)
$dic
Definition: result.php:31
+ Here is the call graph for this function:

◆ tearDown()

ExcelTest::tearDown ( )
protected

Definition at line 53 of file ExcelTestTBD.php.

53  : void
54  {
55  }

◆ testCoordByColumnAndRow()

ExcelTest::testCoordByColumnAndRow ( )

Definition at line 57 of file ExcelTestTBD.php.

57  : void
58  {
59  $excel = new ilExcel();
60 
61  $this->assertEquals(
62  "C2",
63  $excel->getCoordByColumnAndRow(2, 2)
64  );
65  }

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