@@ -4,18 +4,18 @@ |
||
| 4 | 4 | * Set error reporting to maximum |
| 5 | 5 | */ |
| 6 | 6 | error_reporting( -1 ); |
| 7 | -ini_set('display_errors', '1'); |
|
| 7 | +ini_set( 'display_errors', '1' ); |
|
| 8 | 8 | |
| 9 | -date_default_timezone_set('UTC'); |
|
| 9 | +date_default_timezone_set( 'UTC' ); |
|
| 10 | 10 | |
| 11 | 11 | |
| 12 | 12 | /* |
| 13 | 13 | * Set locale settings to reasonable defaults |
| 14 | 14 | */ |
| 15 | -setlocale(LC_ALL, 'en_US.UTF-8'); |
|
| 16 | -setlocale(LC_NUMERIC, 'POSIX'); |
|
| 17 | -setlocale(LC_CTYPE, 'en_US.UTF-8'); |
|
| 18 | -setlocale(LC_TIME, 'POSIX'); |
|
| 15 | +setlocale( LC_ALL, 'en_US.UTF-8' ); |
|
| 16 | +setlocale( LC_NUMERIC, 'POSIX' ); |
|
| 17 | +setlocale( LC_CTYPE, 'en_US.UTF-8' ); |
|
| 18 | +setlocale( LC_TIME, 'POSIX' ); |
|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | require_once 'TestHelper.php'; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $this->logger->log( $this->getLogLevel( $priority ), $message ); |
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | - catch( \Exception $e ) { |
|
| 64 | + catch( \Exception $e ) { |
|
| 65 | 65 | throw new Exception( $e->getMessage(), $e->getCode(), $e ); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -61,7 +61,8 @@ |
||
| 61 | 61 | $this->logger->log( $this->getLogLevel( $priority ), $message ); |
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | - catch( \Exception $e ) { |
|
| 64 | + catch( \Exception $e ) |
|
| 65 | + { |
|
| 65 | 66 | throw new Exception( $e->getMessage(), $e->getCode(), $e ); |
| 66 | 67 | } |
| 67 | 68 | |