ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
LookupRefTest.php
Go to the documentation of this file.
1<?php
2
3
4require_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
An exception for terminatinating execution or to throw for unit testing.
testHLOOKUP()
@dataProvider providerHLOOKUP
testVLOOKUP()
@dataProvider providerVLOOKUP
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