2012-06-24 12:34:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class LayoutTest extends PHPUnit_Framework_TestCase
|
|
|
|
{
|
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
2015-05-17 16:34:30 +00:00
|
|
|
if (!defined('PHPEXCEL_ROOT')) {
|
2012-06-24 12:34:57 +00:00
|
|
|
define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
|
|
|
|
}
|
|
|
|
require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
|
2015-05-17 13:00:02 +00:00
|
|
|
}
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
public function testSetLayoutTarget()
|
|
|
|
{
|
|
|
|
$LayoutTargetValue = 'String';
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
$testInstance = new PHPExcel_Chart_Layout;
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
$result = $testInstance->setLayoutTarget($LayoutTargetValue);
|
|
|
|
$this->assertTrue($result instanceof PHPExcel_Chart_Layout);
|
|
|
|
}
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
public function testGetLayoutTarget()
|
|
|
|
{
|
|
|
|
$LayoutTargetValue = 'String';
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
$testInstance = new PHPExcel_Chart_Layout;
|
|
|
|
$setValue = $testInstance->setLayoutTarget($LayoutTargetValue);
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
$result = $testInstance->getLayoutTarget();
|
2015-05-17 16:34:30 +00:00
|
|
|
$this->assertEquals($LayoutTargetValue, $result);
|
2015-05-17 13:00:02 +00:00
|
|
|
}
|
2012-06-24 12:34:57 +00:00
|
|
|
}
|