ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LookupRefTest.php
Go to the documentation of this file.
1 <?php
2 
3 
4 require_once 'testDataFileIterator.php';
5 
7 {
8 
9  public function setUp()
10  {
11  if (!defined('PHPEXCEL_ROOT'))
12  {
13  define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
14  }
15  require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
16 
18  }
19 
23  public function testHLOOKUP()
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  }
30 
31  public function providerHLOOKUP()
32  {
33  return new testDataFileIterator('rawTestData/Calculation/LookupRef/HLOOKUP.data');
34  }
35 
39  public function testVLOOKUP()
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  }
46 
47  public function providerVLOOKUP()
48  {
49  return new testDataFileIterator('rawTestData/Calculation/LookupRef/VLOOKUP.data');
50  }
51 
52 }
$result
const COMPATIBILITY_EXCEL
constants
Definition: Functions.php:62
testHLOOKUP()
providerHLOOKUP
testVLOOKUP()
providerVLOOKUP
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
static setCompatibilityMode($compatibilityMode)
Definition: Functions.php:116