ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
LogicalTest.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 
20  public function testTRUE()
21  {
23  $this->assertEquals(TRUE, $result);
24  }
25 
26  public function testFALSE()
27  {
29  $this->assertEquals(FALSE, $result);
30  }
31 
35  public function testAND()
36  {
37  $args = func_get_args();
38  $expectedResult = array_pop($args);
39  $result = call_user_func_array(array('PHPExcel_Calculation_Logical','LOGICAL_AND'),$args);
40  $this->assertEquals($expectedResult, $result);
41  }
42 
43  public function providerAND()
44  {
45  return new testDataFileIterator('rawTestData/Calculation/Logical/AND.data');
46  }
47 
51  public function testOR()
52  {
53  $args = func_get_args();
54  $expectedResult = array_pop($args);
55  $result = call_user_func_array(array('PHPExcel_Calculation_Logical','LOGICAL_OR'),$args);
56  $this->assertEquals($expectedResult, $result);
57  }
58 
59  public function providerOR()
60  {
61  return new testDataFileIterator('rawTestData/Calculation/Logical/OR.data');
62  }
63 
67  public function testNOT()
68  {
69  $args = func_get_args();
70  $expectedResult = array_pop($args);
71  $result = call_user_func_array(array('PHPExcel_Calculation_Logical','NOT'),$args);
72  $this->assertEquals($expectedResult, $result);
73  }
74 
75  public function providerNOT()
76  {
77  return new testDataFileIterator('rawTestData/Calculation/Logical/NOT.data');
78  }
79 
83  public function testIF()
84  {
85  $args = func_get_args();
86  $expectedResult = array_pop($args);
87  $result = call_user_func_array(array('PHPExcel_Calculation_Logical','STATEMENT_IF'),$args);
88  $this->assertEquals($expectedResult, $result);
89  }
90 
91  public function providerIF()
92  {
93  return new testDataFileIterator('rawTestData/Calculation/Logical/IF.data');
94  }
95 
99  public function testIFERROR()
100  {
101  $args = func_get_args();
102  $expectedResult = array_pop($args);
103  $result = call_user_func_array(array('PHPExcel_Calculation_Logical','IFERROR'),$args);
104  $this->assertEquals($expectedResult, $result);
105  }
106 
107  public function providerIFERROR()
108  {
109  return new testDataFileIterator('rawTestData/Calculation/Logical/IFERROR.data');
110  }
111 
112 }
testIF()
providerIF
Definition: LogicalTest.php:83
testNOT()
providerNOT
Definition: LogicalTest.php:67
$result
testIFERROR()
providerIFERROR
Definition: LogicalTest.php:99
testAND()
providerAND
Definition: LogicalTest.php:35
const COMPATIBILITY_EXCEL
constants
Definition: Functions.php:62
testOR()
providerOR
Definition: LogicalTest.php:51
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