PhpSpreadsheet/tests/PhpSpreadsheetTests/Chart/LayoutTest.php

30 lines
729 B
PHP
Raw Normal View History

<?php
namespace PhpOffice\PhpSpreadsheetTests\Chart;
use PhpOffice\PhpSpreadsheet\Chart\Layout;
2016-03-22 14:35:50 +00:00
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
}
}