12 if (!
defined(
'PHPEXCEL_ROOT')) {
13 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
15 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
17 $this->_mockAutoFilterColumnObject = $this->getMockBuilder(
'PHPExcel_Worksheet_AutoFilter_Column')
18 ->disableOriginalConstructor()
21 $this->_mockAutoFilterColumnObject->expects($this->any())
22 ->method(
'testColumnInRange')
23 ->will($this->returnValue(3));
26 $this->_mockAutoFilterColumnObject
32 $result = $this->_testAutoFilterRuleObject->getRuleType();
41 $result = $this->_testAutoFilterRuleObject->setRuleType($expectedResult);
42 $this->assertInstanceOf(
'PHPExcel_Worksheet_AutoFilter_Column_Rule',
$result);
44 $result = $this->_testAutoFilterRuleObject->getRuleType();
45 $this->assertEquals($expectedResult,
$result);
50 $expectedResult = 100;
53 $result = $this->_testAutoFilterRuleObject->setValue($expectedResult);
54 $this->assertInstanceOf(
'PHPExcel_Worksheet_AutoFilter_Column_Rule',
$result);
56 $result = $this->_testAutoFilterRuleObject->getValue();
57 $this->assertEquals($expectedResult,
$result);
62 $result = $this->_testAutoFilterRuleObject->getOperator();
71 $result = $this->_testAutoFilterRuleObject->setOperator($expectedResult);
72 $this->assertInstanceOf(
'PHPExcel_Worksheet_AutoFilter_Column_Rule',
$result);
74 $result = $this->_testAutoFilterRuleObject->getOperator();
75 $this->assertEquals($expectedResult,
$result);
83 $result = $this->_testAutoFilterRuleObject->setGrouping($expectedResult);
84 $this->assertInstanceOf(
'PHPExcel_Worksheet_AutoFilter_Column_Rule',
$result);
86 $result = $this->_testAutoFilterRuleObject->getGrouping();
87 $this->assertEquals($expectedResult,
$result);
92 $result = $this->_testAutoFilterRuleObject->getParent();
93 $this->assertInstanceOf(
'PHPExcel_Worksheet_AutoFilter_Column',
$result);
99 $result = $this->_testAutoFilterRuleObject->setParent($this->_mockAutoFilterColumnObject);
100 $this->assertInstanceOf(
'PHPExcel_Worksheet_AutoFilter_Column_Rule',
$result);
106 $this->assertInstanceOf(
'PHPExcel_Worksheet_AutoFilter_Column_Rule',
$result);
$_testAutoFilterRuleObject
const AUTOFILTER_RULETYPE_DATEGROUP
$_mockAutoFilterColumnObject
const AUTOFILTER_COLUMN_RULE_LESSTHAN
const AUTOFILTER_COLUMN_RULE_EQUAL
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
const AUTOFILTER_RULETYPE_FILTER
const AUTOFILTER_RULETYPE_DATEGROUP_MONTH