11            define(
'PHPEXCEL_ROOT', APPLICATION_PATH . 
'/');
 
   13        require_once(PHPEXCEL_ROOT . 
'PHPExcel/Autoloader.php');
 
   18                $urlValue = 
'http://www.phpexcel.net';
 
   22                $result = $testInstance->getUrl();
 
   23                $this->assertEquals($urlValue,
$result);
 
   28                $initialUrlValue = 
'http://www.phpexcel.net';
 
   29                $newUrlValue = 
'http://github.com/PHPOffice/PHPExcel';
 
   32                $result = $testInstance->setUrl($newUrlValue);
 
   35                $result = $testInstance->getUrl();
 
   36                $this->assertEquals($newUrlValue,
$result);
 
   41                $tooltipValue = 
'PHPExcel Web Site';
 
   45                $result = $testInstance->getTooltip();
 
   46                $this->assertEquals($tooltipValue,
$result);
 
   51                $initialTooltipValue = 
'PHPExcel Web Site';
 
   52                $newTooltipValue = 
'PHPExcel Repository on Github';
 
   55                $result = $testInstance->setTooltip($newTooltipValue);
 
   58                $result = $testInstance->getTooltip();
 
   59                $this->assertEquals($newTooltipValue,
$result);
 
   64                $initialUrlValue = 
'http://www.phpexcel.net';
 
   65                $newUrlValue = 
'sheet://Worksheet1!A1';
 
   68                $result = $testInstance->isInternal();
 
   71                $testInstance->setUrl($newUrlValue);
 
   72                $result = $testInstance->isInternal();
 
   78                $urlValue = 
'http://www.phpexcel.net';
 
   79                $tooltipValue = 
'PHPExcel Web Site';
 
   80                $initialExpectedHash = 
'd84d713aed1dbbc8a7c5af183d6c7dbb';
 
   84                $result = $testInstance->getHashCode();
 
   85                $this->assertEquals($initialExpectedHash,
$result);
 
An exception for terminatinating execution or to throw for unit testing.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'