PhpSpreadsheet/unitTests/Classes/src/Chart/LayoutTest.php

27 lines
681 B
PHP
Raw Normal View History

<?php
class LayoutTest extends PHPUnit_Framework_TestCase
{
2015-05-17 13:00:02 +00:00
public function testSetLayoutTarget()
{
$LayoutTargetValue = 'String';
2016-03-22 14:19:00 +00:00
$testInstance = new \PHPExcel\Chart\Layout;
2015-05-17 13:00:02 +00:00
$result = $testInstance->setLayoutTarget($LayoutTargetValue);
2016-03-22 14:19:00 +00:00
$this->assertTrue($result instanceof \PHPExcel\Chart\Layout);
2015-05-17 13:00:02 +00:00
}
2015-05-17 13:00:02 +00:00
public function testGetLayoutTarget()
{
$LayoutTargetValue = 'String';
2016-03-22 14:19:00 +00:00
$testInstance = new \PHPExcel\Chart\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
}
}