Merge pull request #5123 from eileenmcnaughton/CRM-15369
[civicrm-core.git] / tests / phpunit / CiviTest / bootstrap.php
index 8073d3139170cd9e0f17f0a181416efeea6968e7..e23312f52c02a4dcf67d8f2a0af75dafb41991bd 100644 (file)
@@ -2,22 +2,22 @@
 // ADAPTED FROM tools/scripts/phpunit
 
 $GLOBALS['base_dir'] = dirname(dirname(dirname(__DIR__)));
-$tests_dir = $GLOBALS['base_dir']  . DIRECTORY_SEPARATOR . 'tests' . DIRECTORY_SEPARATOR . 'phpunit';
-$civi_pkgs_dir = $GLOBALS['base_dir'] .   DIRECTORY_SEPARATOR . 'packages';
+$tests_dir = $GLOBALS['base_dir'] . DIRECTORY_SEPARATOR . 'tests' . DIRECTORY_SEPARATOR . 'phpunit';
+$civi_pkgs_dir = $GLOBALS['base_dir'] . DIRECTORY_SEPARATOR . 'packages';
 ini_set('safe_mode', 0);
 ini_set('include_path',
-        "{$GLOBALS['base_dir']}" . PATH_SEPARATOR .
-        "$tests_dir"            . PATH_SEPARATOR .
-        "$civi_pkgs_dir"        . PATH_SEPARATOR
-        . ini_get( 'include_path') );
+  "{$GLOBALS['base_dir']}" . PATH_SEPARATOR .
+  "$tests_dir" . PATH_SEPARATOR .
+  "$civi_pkgs_dir" . PATH_SEPARATOR
+  . ini_get('include_path'));
 
 #  Relying on system timezone setting produces a warning,
 #  doing the following prevents the warning message
-if ( file_exists( '/etc/timezone' ) ) {
-    $timezone = trim( file_get_contents( '/etc/timezone' ) );
-    if ( ini_set('date.timezone', $timezone ) === false ) {
-        echo "ini_set( 'date.timezone', '$timezone' ) failed\n";
-    }
+if (file_exists('/etc/timezone')) {
+  $timezone = trim(file_get_contents('/etc/timezone'));
+  if (ini_set('date.timezone', $timezone) === FALSE) {
+    echo "ini_set( 'date.timezone', '$timezone' ) failed\n";
+  }
 }
 
 # Crank up the memory
@@ -27,7 +27,7 @@ require_once $GLOBALS['base_dir'] . '/vendor/autoload.php';
 
 /*
 require $GLOBALS['base_dir'] . DIRECTORY_SEPARATOR .
-        'packages' . DIRECTORY_SEPARATOR .
-        'PHPUnit' . DIRECTORY_SEPARATOR .
-        'Autoload.php';
-*/
+'packages' . DIRECTORY_SEPARATOR .
+'PHPUnit' . DIRECTORY_SEPARATOR .
+'Autoload.php';
+ */