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

Public Member Functions

 setUp ()
 
 testTRUE ()
 
 testFALSE ()
 
 testAND ()
 @dataProvider providerAND More...
 
 providerAND ()
 
 testOR ()
 @dataProvider providerOR More...
 
 providerOR ()
 
 testNOT ()
 @dataProvider providerNOT More...
 
 providerNOT ()
 
 testIF ()
 @dataProvider providerIF More...
 
 providerIF ()
 
 testIFERROR ()
 @dataProvider 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.

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
static setCompatibilityMode($compatibilityMode)
Definition: Functions.php:116
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

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

+ Here is the call graph for this function:

◆ testAND()

LogicalTest::testAND ( )

@dataProvider providerAND

Definition at line 35 of file LogicalTest.php.

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

References $result.

◆ testFALSE()

LogicalTest::testFALSE ( )

Definition at line 26 of file LogicalTest.php.

27 {
29 $this->assertEquals(FALSE, $result);
30 }

References $result, and PHPExcel_Calculation_Logical\FALSE().

+ Here is the call graph for this function:

◆ testIF()

LogicalTest::testIF ( )

@dataProvider providerIF

Definition at line 83 of file LogicalTest.php.

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 }

References $result.

◆ testIFERROR()

LogicalTest::testIFERROR ( )

@dataProvider providerIFERROR

Definition at line 99 of file LogicalTest.php.

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 }

References $result.

◆ testNOT()

LogicalTest::testNOT ( )

@dataProvider providerNOT

Definition at line 67 of file LogicalTest.php.

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 }

References $result.

◆ testOR()

LogicalTest::testOR ( )

@dataProvider providerOR

Definition at line 51 of file LogicalTest.php.

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 }

References $result.

◆ testTRUE()

LogicalTest::testTRUE ( )

Definition at line 20 of file LogicalTest.php.

21 {
23 $this->assertEquals(TRUE, $result);
24 }

References $result, and PHPExcel_Calculation_Logical\TRUE().

+ Here is the call graph for this function:

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