ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
$c
Definition: deliver.php:25
global $DIC
Definition: shib_login.php:26
$GLOBALS["DIC"]
Definition: wac.php:54

References $c, $DIC, and $GLOBALS.

Referenced by setUp().

+ Here is the caller graph for this function:

◆ setUp()

ExcelTest::setUp ( )
protected

Definition at line 38 of file ExcelTestTBD.php.

38 : void
39 {
40 parent::setUp();
42 $GLOBALS['DIC'] = $dic;
43
44 $languageMock = $this->getMockBuilder(ilLanguage::class)
45 ->disableOriginalConstructor()
46 ->getMock();
47 $this->setGlobalVariable(
48 "lng",
49 $languageMock
50 );
51 }
setGlobalVariable(string $name, $value)
$dic
Definition: ltiresult.php:33

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

+ 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: