ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LookupRefTest Class Reference
+ Inheritance diagram for LookupRefTest:
+ Collaboration diagram for LookupRefTest:

Public Member Functions

 setUp ()
 
 testHLOOKUP ()
 @dataProvider providerHLOOKUP More...
 
 providerHLOOKUP ()
 
 testVLOOKUP ()
 @dataProvider providerVLOOKUP More...
 
 providerVLOOKUP ()
 

Detailed Description

Definition at line 6 of file LookupRefTest.php.

Member Function Documentation

◆ providerHLOOKUP()

LookupRefTest::providerHLOOKUP ( )

Definition at line 31 of file LookupRefTest.php.

32 {
33 return new testDataFileIterator('rawTestData/Calculation/LookupRef/HLOOKUP.data');
34 }

◆ providerVLOOKUP()

LookupRefTest::providerVLOOKUP ( )

Definition at line 47 of file LookupRefTest.php.

48 {
49 return new testDataFileIterator('rawTestData/Calculation/LookupRef/VLOOKUP.data');
50 }

◆ setUp()

LookupRefTest::setUp ( )

Definition at line 9 of file LookupRefTest.php.

10 {
11 if (!defined('PHPEXCEL_ROOT'))
12 {
13 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
14 }
15 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
16
18 }
const COMPATIBILITY_EXCEL
constants
Definition: Functions.php:62
static setCompatibilityMode($compatibilityMode)
Definition: Functions.php:116
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

References PHPExcel_Calculation_Functions\COMPATIBILITY_EXCEL, defined, and PHPExcel_Calculation_Functions\setCompatibilityMode().

+ Here is the call graph for this function:

◆ testHLOOKUP()

LookupRefTest::testHLOOKUP ( )

@dataProvider providerHLOOKUP

Definition at line 23 of file LookupRefTest.php.

24 {
25 $args = func_get_args();
26 $expectedResult = array_pop($args);
27 $result = call_user_func_array(array('PHPExcel_Calculation_LookupRef','HLOOKUP'),$args);
28 $this->assertEquals($expectedResult, $result);
29 }
$result

References $result.

◆ testVLOOKUP()

LookupRefTest::testVLOOKUP ( )

@dataProvider providerVLOOKUP

Definition at line 39 of file LookupRefTest.php.

40 {
41 $args = func_get_args();
42 $expectedResult = array_pop($args);
43 $result = call_user_func_array(array('PHPExcel_Calculation_LookupRef','VLOOKUP'),$args);
44 $this->assertEquals($expectedResult, $result);
45 }

References $result.


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