2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< ? php  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/**  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  $Id :  bootstrap . php  2892  2011 - 08 - 14  15 : 11 : 50 Z  markbaker @ phpexcel . net  $ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 * 
							 
						 
					
						
							
								
									
										
										
										
											2012-08-05 17:54:20 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								 *  @ copyright    Copyright  ( C )  2011 - 2012  PHPExcel .  All  rights  reserved . 
							 
						 
					
						
							
								
									
										
										
										
											2012-01-19 22:32:58 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								 *  @ package      PHPExcel 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  @ subpackage   PHPExcel  Unit  Tests 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  @ author       Mark  Baker 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2012-11-23 10:51:34 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								chdir ( dirname ( __FILE__ ));  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											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' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									||  define ( 'APPLICATION_PATH' ,  realpath ( dirname ( __FILE__ )  .  '/../Classes' )); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// Define path to application tests directory
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								defined ( 'APPLICATION_TESTS_PATH' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									||  define ( 'APPLICATION_TESTS_PATH' ,  realpath ( dirname ( __FILE__ )  )); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// Define application environment
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								defined ( 'APPLICATION_ENV' )  ||  define ( 'APPLICATION_ENV' ,  'ci' );  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								// Ensure library/ is on include_path
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								set_include_path ( implode ( PATH_SEPARATOR ,  array (  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									realpath ( APPLICATION_PATH  .  '/../Classes' ), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									'./' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									get_include_path (), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								)));  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/**  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 *  @ 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 . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								echo  " PHPExcel tests beginning \n " ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								if ( extension_loaded ( 'xdebug' ))  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									echo  " Xdebug extension loaded and running \n " ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									xdebug_enable (); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  else  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									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 " ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}