11 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
13 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
18 $positionValues =
array(
28 foreach($positionValues as $positionValue) {
29 $result = $testInstance->setPosition($positionValue);
38 $result = $testInstance->setPosition(
'BottomLeft');
41 $result = $testInstance->getPosition();
50 $setValue = $testInstance->
setPosition($PositionValue);
52 $result = $testInstance->getPosition();
53 $this->assertEquals($PositionValue,
$result);
58 $positionValues =
array(
69 foreach($positionValues as $positionValue) {
70 $result = $testInstance->setPositionXL($positionValue);
79 $result = $testInstance->setPositionXL(999);
82 $result = $testInstance->getPositionXL();
93 $result = $testInstance->getPositionXL();
94 $this->assertEquals($PositionValue,
$result);
99 $overlayValues =
array(
106 foreach($overlayValues as $overlayValue) {
107 $result = $testInstance->setOverlay($overlayValue);
116 $result = $testInstance->setOverlay(
'INVALID');
119 $result = $testInstance->getOverlay();
125 $OverlayValue = TRUE;
128 $setValue = $testInstance->
setOverlay($OverlayValue);
130 $result = $testInstance->getOverlay();
131 $this->assertEquals($OverlayValue,
$result);
setPosition($position=self::POSITION_RIGHT)
Get legend position using an excel string value.
const xlLegendPositionCorner
const xlLegendPositionBottom
Legend positions.
testSetInvalidOverlayReturnsFalse()
const xlLegendPositionCustom
const xlLegendPositionRight
testSetInvalidXLPositionReturnsFalse()
Create styles array
The data for the language used.
setOverlay($overlay=FALSE)
Set allow overlay of other elements?
const xlLegendPositionTop
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
testSetInvalidPositionReturnsFalse()
const xlLegendPositionLeft
setPositionXL($positionXL=self::xlLegendPositionRight)
Set legend position using an Excel internal numeric value.