No Description

LayoutTest.php 830B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. class LayoutTest extends PHPUnit_Framework_TestCase
  3. {
  4. public function setUp()
  5. {
  6. if (!defined('PHPEXCEL_ROOT'))
  7. {
  8. define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
  9. }
  10. require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
  11. }
  12. public function testSetLayoutTarget()
  13. {
  14. $LayoutTargetValue = 'String';
  15. $testInstance = new PHPExcel_Chart_Layout;
  16. $result = $testInstance->setLayoutTarget($LayoutTargetValue);
  17. $this->assertTrue($result instanceof PHPExcel_Chart_Layout);
  18. }
  19. public function testGetLayoutTarget()
  20. {
  21. $LayoutTargetValue = 'String';
  22. $testInstance = new PHPExcel_Chart_Layout;
  23. $setValue = $testInstance->setLayoutTarget($LayoutTargetValue);
  24. $result = $testInstance->getLayoutTarget();
  25. $this->assertEquals($LayoutTargetValue,$result);
  26. }
  27. }