Definition at line 6 of file CellTest.php.
◆ providerAbsoluteCoordinates()
CellTest::providerAbsoluteCoordinates |
( |
| ) |
|
◆ providerAbsoluteReferences()
CellTest::providerAbsoluteReferences |
( |
| ) |
|
◆ providerBuildRange()
CellTest::providerBuildRange |
( |
| ) |
|
◆ providerColumnIndex()
CellTest::providerColumnIndex |
( |
| ) |
|
◆ providerColumnString()
CellTest::providerColumnString |
( |
| ) |
|
◆ providerCoordinates()
CellTest::providerCoordinates |
( |
| ) |
|
◆ providerExtractAllCellReferencesInRange()
CellTest::providerExtractAllCellReferencesInRange |
( |
| ) |
|
◆ providerGetRangeBoundaries()
CellTest::providerGetRangeBoundaries |
( |
| ) |
|
◆ providerRangeBoundaries()
CellTest::providerRangeBoundaries |
( |
| ) |
|
◆ providerRangeDimension()
CellTest::providerRangeDimension |
( |
| ) |
|
◆ providerSplitRange()
CellTest::providerSplitRange |
( |
| ) |
|
◆ setUp()
Definition at line 9 of file CellTest.php.
References defined.
11 if (!
defined(
'PHPEXCEL_ROOT')) {
12 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
14 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ testAbsoluteCoordinateFromString()
CellTest::testAbsoluteCoordinateFromString |
( |
| ) |
|
providerAbsoluteCoordinates
Definition at line 128 of file CellTest.php.
References $result, and array.
130 $args = func_get_args();
131 $expectedResult = array_pop($args);
132 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'absoluteCoordinate'),$args);
133 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testAbsoluteCoordinateFromStringWithRangeAddress()
CellTest::testAbsoluteCoordinateFromStringWithRangeAddress |
( |
| ) |
|
Definition at line 141 of file CellTest.php.
References $result, and array.
143 $cellAddress =
'A1:AI2012';
145 $result = call_user_func(
array(
'PHPExcel_Cell',
'absoluteCoordinate'),$cellAddress);
147 $this->assertEquals($e->getMessage(),
'Cell coordinate string can not be a range of cells');
150 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testAbsoluteReferenceFromString()
CellTest::testAbsoluteReferenceFromString |
( |
| ) |
|
providerAbsoluteReferences
Definition at line 156 of file CellTest.php.
References $result, and array.
158 $args = func_get_args();
159 $expectedResult = array_pop($args);
160 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'absoluteReference'),$args);
161 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testAbsoluteReferenceFromStringWithRangeAddress()
CellTest::testAbsoluteReferenceFromStringWithRangeAddress |
( |
| ) |
|
Definition at line 169 of file CellTest.php.
References $result, and array.
171 $cellAddress =
'A1:AI2012';
173 $result = call_user_func(
array(
'PHPExcel_Cell',
'absoluteReference'),$cellAddress);
175 $this->assertEquals($e->getMessage(),
'Cell coordinate string can not be a range of cells');
178 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testBuildRange()
CellTest::testBuildRange |
( |
| ) |
|
providerBuildRange
Definition at line 206 of file CellTest.php.
References $result, and array.
208 $args = func_get_args();
209 $expectedResult = array_pop($args);
210 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'buildRange'),$args);
211 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testBuildRangeInvalid()
CellTest::testBuildRangeInvalid |
( |
| ) |
|
Definition at line 219 of file CellTest.php.
References $result, and array.
223 $result = call_user_func(
array(
'PHPExcel_Cell',
'buildRange'),$cellRange);
225 $this->assertEquals($e->getMessage(),
'Range does not contain any information');
228 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testColumnIndexFromString()
CellTest::testColumnIndexFromString |
( |
| ) |
|
providerColumnString
Definition at line 20 of file CellTest.php.
References $result, and array.
22 $args = func_get_args();
23 $expectedResult = array_pop($args);
24 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'columnIndexFromString'),$args);
25 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testColumnIndexFromStringTooLong()
CellTest::testColumnIndexFromStringTooLong |
( |
| ) |
|
Definition at line 33 of file CellTest.php.
References $result, and array.
35 $cellAddress =
'ABCD';
37 $result = call_user_func(
array(
'PHPExcel_Cell',
'columnIndexFromString'),$cellAddress);
39 $this->assertEquals($e->getMessage(),
'Column string index can not be longer than 3 characters');
42 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testColumnIndexFromStringTooShort()
CellTest::testColumnIndexFromStringTooShort |
( |
| ) |
|
Definition at line 45 of file CellTest.php.
References $result, and array.
49 $result = call_user_func(
array(
'PHPExcel_Cell',
'columnIndexFromString'),$cellAddress);
51 $this->assertEquals($e->getMessage(),
'Column string index can not be empty');
54 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testCoordinateFromString()
CellTest::testCoordinateFromString |
( |
| ) |
|
providerCoordinates
Definition at line 76 of file CellTest.php.
References $result, and array.
78 $args = func_get_args();
79 $expectedResult = array_pop($args);
80 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'coordinateFromString'),$args);
81 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testCoordinateFromStringWithEmptyAddress()
CellTest::testCoordinateFromStringWithEmptyAddress |
( |
| ) |
|
Definition at line 101 of file CellTest.php.
References $result, and array.
105 $result = call_user_func(
array(
'PHPExcel_Cell',
'coordinateFromString'),$cellAddress);
107 $this->assertEquals($e->getMessage(),
'Cell coordinate can not be zero-length string');
110 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testCoordinateFromStringWithInvalidAddress()
CellTest::testCoordinateFromStringWithInvalidAddress |
( |
| ) |
|
Definition at line 113 of file CellTest.php.
References $result, and array.
117 $result = call_user_func(
array(
'PHPExcel_Cell',
'coordinateFromString'),$cellAddress);
119 $this->assertEquals($e->getMessage(),
'Invalid cell coordinate '.$cellAddress);
122 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testCoordinateFromStringWithRangeAddress()
CellTest::testCoordinateFromStringWithRangeAddress |
( |
| ) |
|
Definition at line 89 of file CellTest.php.
References $result, and array.
91 $cellAddress =
'A1:AI2012';
93 $result = call_user_func(
array(
'PHPExcel_Cell',
'coordinateFromString'),$cellAddress);
95 $this->assertEquals($e->getMessage(),
'Cell coordinate string can not be a range of cells');
98 $this->fail(
'An expected exception has not been raised.');
Create styles array
The data for the language used.
◆ testExtractAllCellReferencesInRange()
CellTest::testExtractAllCellReferencesInRange |
( |
| ) |
|
providerExtractAllCellReferencesInRange
Definition at line 282 of file CellTest.php.
References $result, and array.
284 $args = func_get_args();
285 $expectedResult = array_pop($args);
286 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'extractAllCellReferencesInRange'),$args);
287 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testGetRangeBoundaries()
CellTest::testGetRangeBoundaries |
( |
| ) |
|
providerGetRangeBoundaries
Definition at line 266 of file CellTest.php.
References $result, and array.
268 $args = func_get_args();
269 $expectedResult = array_pop($args);
270 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'getRangeBoundaries'),$args);
271 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testRangeBoundaries()
CellTest::testRangeBoundaries |
( |
| ) |
|
providerRangeBoundaries
Definition at line 234 of file CellTest.php.
References $result, and array.
236 $args = func_get_args();
237 $expectedResult = array_pop($args);
238 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'rangeBoundaries'),$args);
239 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testRangeDimension()
CellTest::testRangeDimension |
( |
| ) |
|
providerRangeDimension
Definition at line 250 of file CellTest.php.
References $result, and array.
252 $args = func_get_args();
253 $expectedResult = array_pop($args);
254 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'rangeDimension'),$args);
255 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
◆ testSplitRange()
CellTest::testSplitRange |
( |
| ) |
|
providerSplitRange
Definition at line 184 of file CellTest.php.
References $result, and array.
186 $args = func_get_args();
187 $expectedResult = array_pop($args);
188 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'splitRange'),$args);
189 foreach(
$result as $key => $split) {
190 if (!is_array($expectedResult[$key])) {
191 $this->assertEquals($expectedResult[$key], $split[0]);
193 $this->assertEquals($expectedResult[$key], $split);
Create styles array
The data for the language used.
◆ testStringFromColumnIndex()
CellTest::testStringFromColumnIndex |
( |
| ) |
|
providerColumnIndex
Definition at line 60 of file CellTest.php.
References $result, and array.
62 $args = func_get_args();
63 $expectedResult = array_pop($args);
64 $result = call_user_func_array(
array(
'PHPExcel_Cell',
'stringFromColumnIndex'),$args);
65 $this->assertEquals($expectedResult,
$result);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/CellTest.php