ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
LogicalTest Class Reference
+ Inheritance diagram for LogicalTest:
+ Collaboration diagram for LogicalTest:

Public Member Functions

 setUp ()
 
 testTRUE ()
 
 testFALSE ()
 
 testAND ()
 providerAND More...
 
 providerAND ()
 
 testOR ()
 providerOR More...
 
 providerOR ()
 
 testNOT ()
 providerNOT More...
 
 providerNOT ()
 
 testIF ()
 providerIF More...
 
 providerIF ()
 
 testIFERROR ()
 providerIFERROR More...
 
 providerIFERROR ()
 

Detailed Description

Definition at line 6 of file LogicalTest.php.

Member Function Documentation

◆ providerAND()

LogicalTest::providerAND ( )

Definition at line 43 of file LogicalTest.php.

44  {
45  return new testDataFileIterator('rawTestData/Calculation/Logical/AND.data');
46  }

◆ providerIF()

LogicalTest::providerIF ( )

Definition at line 91 of file LogicalTest.php.

92  {
93  return new testDataFileIterator('rawTestData/Calculation/Logical/IF.data');
94  }

◆ providerIFERROR()

LogicalTest::providerIFERROR ( )

Definition at line 107 of file LogicalTest.php.

108  {
109  return new testDataFileIterator('rawTestData/Calculation/Logical/IFERROR.data');
110  }

◆ providerNOT()

LogicalTest::providerNOT ( )

Definition at line 75 of file LogicalTest.php.

76  {
77  return new testDataFileIterator('rawTestData/Calculation/Logical/NOT.data');
78  }

◆ providerOR()

LogicalTest::providerOR ( )

Definition at line 59 of file LogicalTest.php.

60  {
61  return new testDataFileIterator('rawTestData/Calculation/Logical/OR.data');
62  }

◆ setUp()

LogicalTest::setUp ( )

Definition at line 9 of file LogicalTest.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:

◆ testAND()

LogicalTest::testAND ( )

providerAND

Definition at line 35 of file LogicalTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testFALSE()

LogicalTest::testFALSE ( )

Definition at line 26 of file LogicalTest.php.

References $result, and PHPExcel_Calculation_Logical\FALSE().

27  {
29  $this->assertEquals(FALSE, $result);
30  }
$result
+ Here is the call graph for this function:

◆ testIF()

LogicalTest::testIF ( )

providerIF

Definition at line 83 of file LogicalTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testIFERROR()

LogicalTest::testIFERROR ( )

providerIFERROR

Definition at line 99 of file LogicalTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testNOT()

LogicalTest::testNOT ( )

providerNOT

Definition at line 67 of file LogicalTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testOR()

LogicalTest::testOR ( )

providerOR

Definition at line 51 of file LogicalTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

◆ testTRUE()

LogicalTest::testTRUE ( )

Definition at line 20 of file LogicalTest.php.

References $result, and PHPExcel_Calculation_Logical\TRUE().

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

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