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-11-08 15:48:01 +00:00
|
|
|
use PHPUnit\Framework\TestCase;
|
2016-08-14 04:08:43 +00:00
|
|
|
|
2017-11-08 15:48:01 +00:00
|
|
|
class LayoutTest extends 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);
|
2017-12-06 09:46:31 +00:00
|
|
|
self::assertInstanceOf(Layout::class, $result);
|
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();
|
2017-10-29 05:09:38 +00:00
|
|
|
$testInstance->setLayoutTarget($LayoutTargetValue);
|
2012-06-24 12:34:57 +00:00
|
|
|
|
2015-05-17 13:00:02 +00:00
|
|
|
$result = $testInstance->getLayoutTarget();
|
2017-09-20 05:55:42 +00:00
|
|
|
self::assertEquals($LayoutTargetValue, $result);
|
2015-05-17 13:00:02 +00:00
|
|
|
}
|
2012-06-24 12:34:57 +00:00
|
|
|
}
|