ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LayoutTest.php
Go to the documentation of this file.
1 <?php
2 
3 
5 {
6 
7  public function setUp()
8  {
9  if (!defined('PHPEXCEL_ROOT'))
10  {
11  define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
12  }
13  require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
14  }
15 
16  public function testSetLayoutTarget()
17  {
18  $LayoutTargetValue = 'String';
19 
20  $testInstance = new PHPExcel_Chart_Layout;
21 
22  $result = $testInstance->setLayoutTarget($LayoutTargetValue);
23  $this->assertTrue($result instanceof PHPExcel_Chart_Layout);
24  }
25 
26  public function testGetLayoutTarget()
27  {
28  $LayoutTargetValue = 'String';
29 
30  $testInstance = new PHPExcel_Chart_Layout;
31  $setValue = $testInstance->setLayoutTarget($LayoutTargetValue);
32 
33  $result = $testInstance->getLayoutTarget();
34  $this->assertEquals($LayoutTargetValue,$result);
35  }
36 
37 }
testGetLayoutTarget()
Definition: LayoutTest.php:26
$result
testSetLayoutTarget()
Definition: LayoutTest.php:16
setLayoutTarget($value)
Set Layout Target.
Definition: Layout.php:172
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27