@@ -45,7 +45,7 @@ |
||
| 45 | 45 | trigger_error("Dummy", E_USER_ERROR); |
| 46 | 46 | } catch (\Exception $e) { |
| 47 | 47 | $this->assertEquals( |
| 48 | - sprintf("Dummy in %s on line %s!", __FILE__, __LINE__ - 3), |
|
| 48 | + sprintf("Dummy in %s on line %s!", __FILE__, __LINE__ -3), |
|
| 49 | 49 | $e->getMessage() |
| 50 | 50 | ); |
| 51 | 51 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | if (is_null($exceptionClass)) { |
| 45 | 45 | $exceptionClass = static::EXCEPTION_THROW_CLASS; |
| 46 | 46 | } |
| 47 | - set_error_handler(function ($errorNumber, $errorMessage, $errorFile, $errorLine) use ($exceptionClass) { |
|
| 47 | + set_error_handler(function($errorNumber, $errorMessage, $errorFile, $errorLine) use ($exceptionClass) { |
|
| 48 | 48 | throw new $exceptionClass( |
| 49 | 49 | sprintf("%s in %s on line %s!", $errorMessage, $errorFile, $errorLine), |
| 50 | 50 | $errorNumber |