PhpSpreadsheet/tests/PhpSpreadsheetTests/Chart/LayoutTest.php

31 lines
760 B
PHP
Raw Normal View History

<?php
namespace PhpOffice\PhpSpreadsheetTests\Chart;
use PhpOffice\PhpSpreadsheet\Chart\Layout;
use PHPUnit_Framework_TestCase;
class LayoutTest extends PHPUnit_Framework_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);
$this->assertTrue($result instanceof Layout);
2015-05-17 13:00:02 +00:00
}
2015-05-17 13:00:02 +00:00
public function testGetLayoutTarget()
{
$LayoutTargetValue = 'String';
$testInstance = new Layout();
2015-05-17 13:00:02 +00:00
$setValue = $testInstance->setLayoutTarget($LayoutTargetValue);
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
}
}