PhpSpreadsheet/tests/PhpSpreadsheetTests/Chart/LayoutTest.php

31 lines
731 B
PHP
Raw Normal View History

<?php
namespace PhpOffice\PhpSpreadsheetTests\Chart;
use PhpOffice\PhpSpreadsheet\Chart\Layout;
use PHPUnit\Framework\TestCase;
class LayoutTest extends TestCase
{
2015-05-17 13:00:02 +00:00
public function testSetLayoutTarget()
{
$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
}
2015-05-17 13:00:02 +00:00
public function testGetLayoutTarget()
{
$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
}
}