@@ -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'; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $this->logger->log( $this->translatePriority( $priority ), $message ); |
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | - catch( \Exception $e ) { |
|
| 63 | + catch( \Exception $e ) { |
|
| 64 | 64 | throw new \Aimeos\MW\Logger\Exception( $e->getMessage(), $e->getCode(), $e ); |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -60,7 +60,8 @@ |
||
| 60 | 60 | $this->logger->log( $this->translatePriority( $priority ), $message ); |
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | - catch( \Exception $e ) { |
|
| 63 | + catch( \Exception $e ) |
|
| 64 | + { |
|
| 64 | 65 | throw new \Aimeos\MW\Logger\Exception( $e->getMessage(), $e->getCode(), $e ); |
| 65 | 66 | } |
| 66 | 67 | } |