2012-06-24 12:34:57 +00:00
|
|
|
<?php
|
|
|
|
|
2016-08-31 17:18:12 +00:00
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Chart;
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2016-08-31 17:18:12 +00:00
|
|
|
use PhpOffice\PhpSpreadsheet\Chart\Layout;
|
2017-05-17 22:02:17 +00:00
|
|
|
use PHPUnit_Framework_TestCase;
|
2016-08-14 04:08:43 +00:00
|
|
|
|
2017-05-17 22:02:17 +00:00
|
|
|
class LayoutTest extends PHPUnit_Framework_TestCase
|
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
|
|
|
|
2016-08-16 15:33:57 +00:00
|
|
|
$testInstance = new Layout();
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
$result = $testInstance->setLayoutTarget($LayoutTargetValue);
|
2016-08-14 04:08:43 +00:00
|
|
|
$this->assertTrue($result instanceof 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-08-16 15:33:57 +00:00
|
|
|
$testInstance = new 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
|
|
|
}
|