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

Public Member Functions

 setUp ()
 
 testDUMMY ()
 
 testDIV0 ()
 
 testNA ()
 
 testNaN ()
 
 testNAME ()
 
 testREF ()
 
 testNULL ()
 
 testVALUE ()
 
 testIS_BLANK ()
 providerIS_BLANK More...
 
 providerIS_BLANK ()
 
 testIS_ERR ()
 providerIS_ERR More...
 
 providerIS_ERR ()
 
 testIS_ERROR ()
 providerIS_ERROR More...
 
 providerIS_ERROR ()
 
 testERROR_TYPE ()
 providerERROR_TYPE More...
 
 providerERROR_TYPE ()
 
 testIS_LOGICAL ()
 providerIS_LOGICAL More...
 
 providerIS_LOGICAL ()
 
 testIS_NA ()
 providerIS_NA More...
 
 providerIS_NA ()
 
 testIS_NUMBER ()
 providerIS_NUMBER More...
 
 providerIS_NUMBER ()
 
 testIS_TEXT ()
 providerIS_TEXT More...
 
 providerIS_TEXT ()
 
 testIS_NONTEXT ()
 providerIS_NONTEXT More...
 
 providerIS_NONTEXT ()
 
 testIS_EVEN ()
 providerIS_EVEN More...
 
 providerIS_EVEN ()
 
 testIS_ODD ()
 providerIS_ODD More...
 
 providerIS_ODD ()
 
 testTYPE ()
 providerTYPE More...
 
 providerTYPE ()
 
 testN ()
 providerN More...
 
 providerN ()
 

Detailed Description

Definition at line 6 of file FunctionsTest.php.

Member Function Documentation

◆ providerERROR_TYPE()

FunctionsTest::providerERROR_TYPE ( )

Definition at line 127 of file FunctionsTest.php.

128  {
129  return new testDataFileIterator('rawTestData/Calculation/Functions/ERROR_TYPE.data');
130  }

◆ providerIS_BLANK()

FunctionsTest::providerIS_BLANK ( )

Definition at line 79 of file FunctionsTest.php.

80  {
81  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_BLANK.data');
82  }

◆ providerIS_ERR()

FunctionsTest::providerIS_ERR ( )

Definition at line 95 of file FunctionsTest.php.

96  {
97  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_ERR.data');
98  }

◆ providerIS_ERROR()

FunctionsTest::providerIS_ERROR ( )

Definition at line 111 of file FunctionsTest.php.

112  {
113  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_ERROR.data');
114  }

◆ providerIS_EVEN()

FunctionsTest::providerIS_EVEN ( )

Definition at line 223 of file FunctionsTest.php.

224  {
225  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_EVEN.data');
226  }

◆ providerIS_LOGICAL()

FunctionsTest::providerIS_LOGICAL ( )

Definition at line 143 of file FunctionsTest.php.

144  {
145  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_LOGICAL.data');
146  }

◆ providerIS_NA()

FunctionsTest::providerIS_NA ( )

Definition at line 159 of file FunctionsTest.php.

160  {
161  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_NA.data');
162  }

◆ providerIS_NONTEXT()

FunctionsTest::providerIS_NONTEXT ( )

Definition at line 207 of file FunctionsTest.php.

208  {
209  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_NONTEXT.data');
210  }

◆ providerIS_NUMBER()

FunctionsTest::providerIS_NUMBER ( )

Definition at line 175 of file FunctionsTest.php.

176  {
177  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_NUMBER.data');
178  }

◆ providerIS_ODD()

FunctionsTest::providerIS_ODD ( )

Definition at line 239 of file FunctionsTest.php.

240  {
241  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_ODD.data');
242  }

◆ providerIS_TEXT()

FunctionsTest::providerIS_TEXT ( )

Definition at line 191 of file FunctionsTest.php.

192  {
193  return new testDataFileIterator('rawTestData/Calculation/Functions/IS_TEXT.data');
194  }

◆ providerN()

FunctionsTest::providerN ( )

Definition at line 271 of file FunctionsTest.php.

272  {
273  return new testDataFileIterator('rawTestData/Calculation/Functions/N.data');
274  }

◆ providerTYPE()

FunctionsTest::providerTYPE ( )

Definition at line 255 of file FunctionsTest.php.

256  {
257  return new testDataFileIterator('rawTestData/Calculation/Functions/TYPE.data');
258  }

◆ setUp()

FunctionsTest::setUp ( )

Definition at line 9 of file FunctionsTest.php.

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

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
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
static setCompatibilityMode($compatibilityMode)
Definition: Functions.php:116
+ Here is the call graph for this function:

◆ testDIV0()

FunctionsTest::testDIV0 ( )

Definition at line 26 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\DIV0().

27  {
29  $this->assertEquals('#DIV/0!', $result);
30  }
$result
+ Here is the call graph for this function:

◆ testDUMMY()

FunctionsTest::testDUMMY ( )

Definition at line 20 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\DUMMY().

21  {
23  $this->assertEquals('#Not Yet Implemented', $result);
24  }
$result
+ Here is the call graph for this function:

◆ testERROR_TYPE()

FunctionsTest::testERROR_TYPE ( )

providerERROR_TYPE

Definition at line 119 of file FunctionsTest.php.

References $result, and array.

120  {
121  $args = func_get_args();
122  $expectedResult = array_pop($args);
123  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','ERROR_TYPE'),$args);
124  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
125  }
$result
Create styles array
The data for the language used.

◆ testIS_BLANK()

FunctionsTest::testIS_BLANK ( )

providerIS_BLANK

Definition at line 71 of file FunctionsTest.php.

References $result, and array.

72  {
73  $args = func_get_args();
74  $expectedResult = array_pop($args);
75  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_BLANK'),$args);
76  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
77  }
$result
Create styles array
The data for the language used.

◆ testIS_ERR()

FunctionsTest::testIS_ERR ( )

providerIS_ERR

Definition at line 87 of file FunctionsTest.php.

References $result, and array.

88  {
89  $args = func_get_args();
90  $expectedResult = array_pop($args);
91  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_ERR'),$args);
92  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
93  }
$result
Create styles array
The data for the language used.

◆ testIS_ERROR()

FunctionsTest::testIS_ERROR ( )

providerIS_ERROR

Definition at line 103 of file FunctionsTest.php.

References $result, and array.

104  {
105  $args = func_get_args();
106  $expectedResult = array_pop($args);
107  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_ERROR'),$args);
108  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
109  }
$result
Create styles array
The data for the language used.

◆ testIS_EVEN()

FunctionsTest::testIS_EVEN ( )

providerIS_EVEN

Definition at line 215 of file FunctionsTest.php.

References $result, and array.

216  {
217  $args = func_get_args();
218  $expectedResult = array_pop($args);
219  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_EVEN'),$args);
220  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
221  }
$result
Create styles array
The data for the language used.

◆ testIS_LOGICAL()

FunctionsTest::testIS_LOGICAL ( )

providerIS_LOGICAL

Definition at line 135 of file FunctionsTest.php.

References $result, and array.

136  {
137  $args = func_get_args();
138  $expectedResult = array_pop($args);
139  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_LOGICAL'),$args);
140  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
141  }
$result
Create styles array
The data for the language used.

◆ testIS_NA()

FunctionsTest::testIS_NA ( )

providerIS_NA

Definition at line 151 of file FunctionsTest.php.

References $result, and array.

152  {
153  $args = func_get_args();
154  $expectedResult = array_pop($args);
155  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_NA'),$args);
156  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
157  }
$result
Create styles array
The data for the language used.

◆ testIS_NONTEXT()

FunctionsTest::testIS_NONTEXT ( )

providerIS_NONTEXT

Definition at line 199 of file FunctionsTest.php.

References $result, and array.

200  {
201  $args = func_get_args();
202  $expectedResult = array_pop($args);
203  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_NONTEXT'),$args);
204  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
205  }
$result
Create styles array
The data for the language used.

◆ testIS_NUMBER()

FunctionsTest::testIS_NUMBER ( )

providerIS_NUMBER

Definition at line 167 of file FunctionsTest.php.

References $result, and array.

168  {
169  $args = func_get_args();
170  $expectedResult = array_pop($args);
171  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_NUMBER'),$args);
172  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
173  }
$result
Create styles array
The data for the language used.

◆ testIS_ODD()

FunctionsTest::testIS_ODD ( )

providerIS_ODD

Definition at line 231 of file FunctionsTest.php.

References $result, and array.

232  {
233  $args = func_get_args();
234  $expectedResult = array_pop($args);
235  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_ODD'),$args);
236  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
237  }
$result
Create styles array
The data for the language used.

◆ testIS_TEXT()

FunctionsTest::testIS_TEXT ( )

providerIS_TEXT

Definition at line 183 of file FunctionsTest.php.

References $result, and array.

184  {
185  $args = func_get_args();
186  $expectedResult = array_pop($args);
187  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','IS_TEXT'),$args);
188  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
189  }
$result
Create styles array
The data for the language used.

◆ testN()

FunctionsTest::testN ( )

providerN

Definition at line 263 of file FunctionsTest.php.

References $result, and array.

264  {
265  $args = func_get_args();
266  $expectedResult = array_pop($args);
267  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','N'),$args);
268  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
269  }
$result
Create styles array
The data for the language used.

◆ testNA()

FunctionsTest::testNA ( )

Definition at line 32 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\NA().

33  {
35  $this->assertEquals('#N/A', $result);
36  }
$result
+ Here is the call graph for this function:

◆ testNAME()

FunctionsTest::testNAME ( )

Definition at line 44 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\NAME().

45  {
47  $this->assertEquals('#NAME?', $result);
48  }
$result
+ Here is the call graph for this function:

◆ testNaN()

FunctionsTest::testNaN ( )

Definition at line 38 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\NaN().

39  {
41  $this->assertEquals('#NUM!', $result);
42  }
$result
+ Here is the call graph for this function:

◆ testNULL()

FunctionsTest::testNULL ( )

Definition at line 56 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\NULL().

57  {
59  $this->assertEquals('#NULL!', $result);
60  }
$result
+ Here is the call graph for this function:

◆ testREF()

FunctionsTest::testREF ( )

Definition at line 50 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\REF().

51  {
53  $this->assertEquals('#REF!', $result);
54  }
$result
+ Here is the call graph for this function:

◆ testTYPE()

FunctionsTest::testTYPE ( )

providerTYPE

Definition at line 247 of file FunctionsTest.php.

References $result, and array.

248  {
249  $args = func_get_args();
250  $expectedResult = array_pop($args);
251  $result = call_user_func_array(array('PHPExcel_Calculation_Functions','TYPE'),$args);
252  $this->assertEquals($expectedResult, $result, NULL, 1E-8);
253  }
$result
Create styles array
The data for the language used.

◆ testVALUE()

FunctionsTest::testVALUE ( )

Definition at line 62 of file FunctionsTest.php.

References $result, and PHPExcel_Calculation_Functions\VALUE().

63  {
65  $this->assertEquals('#VALUE!', $result);
66  }
$result
+ Here is the call graph for this function:

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