ILIAS  release_8 Revision v8.23
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 8 of file ExcelTest.php.

Member Function Documentation

◆ setGlobalVariable()

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

Definition at line 10 of file ExcelTest.php.

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

Referenced by setUp().

10  : void
11  {
12  global $DIC;
13 
14  $GLOBALS[$name] = $value;
15 
16  unset($DIC[$name]);
17  $DIC[$name] = static function (\ILIAS\DI\Container $c) use ($value) {
18  return $value;
19  };
20  }
$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
+ Here is the caller graph for this function:

◆ setUp()

ExcelTest::setUp ( )
protected

Definition at line 22 of file ExcelTest.php.

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

22  : void
23  {
24  parent::setUp();
25  $dic = new ILIAS\DI\Container();
26  $GLOBALS['DIC'] = $dic;
27 
28  $languageMock = $this->getMockBuilder(ilLanguage::class)
29  ->disableOriginalConstructor()
30  ->getMock();
31  $this->setGlobalVariable(
32  "lng",
33  $languageMock
34  );
35  }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
setGlobalVariable(string $name, $value)
Definition: ExcelTest.php:10
$dic
Definition: result.php:32
+ Here is the call graph for this function:

◆ tearDown()

ExcelTest::tearDown ( )
protected

Definition at line 37 of file ExcelTest.php.

37  : void
38  {
39  }

◆ testCoordByColumnAndRow()

ExcelTest::testCoordByColumnAndRow ( )

Definition at line 41 of file ExcelTest.php.

41  : void
42  {
43  $excel = new ilExcel();
44 
45  $this->assertEquals(
46  "C2",
47  $excel->getCoordByColumnAndRow(2, 2)
48  );
49  }

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