LayoutTest.php 897 B

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