2012-06-24 12:34:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class LayoutTest extends PHPUnit_Framework_TestCase
|
|
|
|
{
|
2015-05-17 13:00:02 +00:00
|
|
|
public function testSetLayoutTarget()
|
|
|
|
{
|
|
|
|
$LayoutTargetValue = 'String';
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2016-03-22 14:19:00 +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);
|
2016-03-22 14:19:00 +00:00
|
|
|
$this->assertTrue($result instanceof \PHPExcel\Chart\Layout);
|
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 testGetLayoutTarget()
|
|
|
|
{
|
|
|
|
$LayoutTargetValue = 'String';
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2016-03-22 14:19:00 +00:00
|
|
|
$testInstance = new \PHPExcel\Chart\Layout;
|
2015-05-17 13:00:02 +00:00
|
|
|
$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
|
|
|
}
|