PhpSpreadsheet/tests/PhpSpreadsheetTests/Chart/LayoutTest.php

31 lines
743 B
PHP
Raw Normal View History

<?php
namespace PhpOffice\PhpSpreadsheetTests\Chart;
use PhpOffice\PhpSpreadsheet\Chart\Layout;
use PHPUnit\Framework\TestCase;
class LayoutTest extends TestCase
{
2020-05-18 04:49:57 +00:00
public function testSetLayoutTarget(): void
2015-05-17 13:00:02 +00:00
{
$LayoutTargetValue = 'String';
$testInstance = new Layout();
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
}
2020-05-18 04:49:57 +00:00
public function testGetLayoutTarget(): void
2015-05-17 13:00:02 +00:00
{
$LayoutTargetValue = 'String';
$testInstance = new Layout();
2017-10-29 05:09:38 +00:00
$testInstance->setLayoutTarget($LayoutTargetValue);
2015-05-17 13:00:02 +00:00
$result = $testInstance->getLayoutTarget();
self::assertEquals($LayoutTargetValue, $result);
2015-05-17 13:00:02 +00:00
}
}