2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< ? php  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/**  
						 
					
						
							
								
									
										
										
										
											2016-08-16 14:24:47 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								 *  @ copyright    Copyright  ( C )  2011 - 2014  PhpSpreadsheet .  All  rights  reserved . 
							 
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								 *  @ author       Mark  Baker 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 */ 
							 
						 
					
						
							
								
									
										
										
										
											2012-11-23 10:51:34 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								chdir ( dirname ( __FILE__ ));  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2012-11-25 09:33:54 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								setlocale ( LC_ALL ,  'en_US.utf8' );  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								// PHP 5.3 Compat
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								date_default_timezone_set ( 'Europe/London' );  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// Define path to application directory
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								defined ( 'APPLICATION_PATH' )  
						 
					
						
							
								
									
										
										
										
											2015-05-26 20:21:05 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    ||  define ( 'APPLICATION_PATH' ,  realpath ( dirname ( __FILE__ )  .  '/../src' )); 
							 
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// Define path to application tests directory
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								defined ( 'APPLICATION_TESTS_PATH' )  
						 
					
						
							
								
									
										
										
										
											2015-05-17 16:10:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    ||  define ( 'APPLICATION_TESTS_PATH' ,  realpath ( dirname ( __FILE__ ))); 
							 
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// Define application environment
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								defined ( 'APPLICATION_ENV' )  ||  define ( 'APPLICATION_ENV' ,  'ci' );  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// Ensure library/ is on include_path
  
						 
					
						
							
								
									
										
										
										
											2016-08-16 15:33:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								set_include_path ( implode ( PATH_SEPARATOR ,  [  
						 
					
						
							
								
									
										
										
										
											2015-05-26 20:21:05 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    realpath ( APPLICATION_PATH  .  '/../src' ), 
							 
						 
					
						
							
								
									
										
										
										
											2015-05-17 16:10:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    './' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    dirname ( __FILE__ ), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    get_include_path (), 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-16 15:33:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								]));  
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-16 14:24:47 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								if  ( ! defined ( 'PHPSPREADSHEET_ROOT' ))  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    define ( 'PHPSPREADSHEET_ROOT' ,  APPLICATION_PATH  .  '/' ); 
							 
						 
					
						
							
								
									
										
										
										
											2015-05-29 20:35:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
									
										
										
										
											2016-08-16 15:33:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								require_once  PHPSPREADSHEET_ROOT  .  'Bootstrap.php' ;  
						 
					
						
							
								
									
										
										
										
											2015-05-29 20:35:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-16 15:33:57 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								/*  
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								 *  @ todo  Sort  out  xdebug  in  vagrant  so  that  this  works  in  all  sandboxes 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  For  now ,  it  is  safer  to  test  for  it  rather  then  remove  it . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 */ 
							 
						 
					
						
							
								
									
										
										
										
											2016-08-16 14:24:47 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								echo  " PhpSpreadsheet tests beginning \n " ;  
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-17 16:10:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								if  ( extension_loaded ( 'xdebug' ))  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    echo  " Xdebug extension loaded and running \n " ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    xdebug_enable (); 
							 
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  else  {  
						 
					
						
							
								
									
										
										
										
											2015-05-17 16:10:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    echo  'Xdebug not found, you should run the following at the command line: echo "zend_extension=/usr/lib64/php/modules/xdebug.so" > /etc/php.d/xdebug.ini'  .  " \n " ; 
							 
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}