10            define(
'PHPEXCEL_ROOT', APPLICATION_PATH . 
'/');
 
   12        require_once(PHPEXCEL_ROOT . 
'PHPExcel/Autoloader.php');
 
   21        $reader = $this->getMockForAbstractClass(
'PHPExcel_Reader_Abstract');
 
   22        $expectedResult = 
'FAILURE: Should throw an Exception rather than return a value';
 
   24                $this->assertEquals($expectedResult, 
$result);
 
   30        foreach(glob(
'rawTestData/Reader/XEETestInvalid*.xml') as 
$file) {
 
   31            $tests[] = [realpath(
$file), 
true];
 
   41        $reader = $this->getMockForAbstractClass(
'PHPExcel_Reader_Abstract');
 
   43                $this->assertEquals($expectedResult, 
$result);
 
   49        foreach(glob(
'rawTestData/Reader/XEETestValid*.xml') as 
$file) {
 
   50            $tests[] = [realpath(
$file), file_get_contents(
$file)];
 
An exception for terminatinating execution or to throw for unit testing.
testInvalidXML($filename)
@dataProvider providerInvalidXML @expectedException PHPExcel_Reader_Exception
testValidXML($filename, $expectedResult)
@dataProvider providerValidXML
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file