define PHPUNIT constant only if not already set
This commit is contained in:
		
							parent
							
								
									e851f57e2a
								
							
						
					
					
						commit
						22dcb6e2e4
					
				@ -3,7 +3,9 @@
 | 
				
			|||||||
global $RUNTIME_NOAPPS;
 | 
					global $RUNTIME_NOAPPS;
 | 
				
			||||||
$RUNTIME_NOAPPS = true;
 | 
					$RUNTIME_NOAPPS = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define('PHPUNIT_RUN', 1);
 | 
					if (!defined('PHPUNIT_RUN')) {
 | 
				
			||||||
 | 
						define('PHPUNIT_RUN', 1);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require_once __DIR__.'/../../../lib/base.php';
 | 
					require_once __DIR__.'/../../../lib/base.php';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user