@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param Closure $test |
43 | 43 | * @param string $suiteName |
44 | 44 | * @param string $successMessage |
45 | - * @param int|null $exceptionCode |
|
45 | + * @param integer $exceptionCode |
|
46 | 46 | * @param string $exceptionClass |
47 | 47 | * @param string $exceptionMsg |
48 | 48 | * @return Suite |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | * @param string $testName |
434 | 434 | * @param Closure $test |
435 | 435 | * @param string $successMessage |
436 | - * @param int|null $exceptionCode |
|
436 | + * @param integer $exceptionCode |
|
437 | 437 | * @param string $exceptionClass |
438 | 438 | * @return Suite |
439 | 439 | * @throws AssertionFailedException |
@@ -1014,7 +1014,7 @@ discard block |
||
1014 | 1014 | /** |
1015 | 1015 | * Log messages to resource |
1016 | 1016 | * |
1017 | - * @param mixed $level The level of the log message |
|
1017 | + * @param string $level The level of the log message |
|
1018 | 1018 | * @param string $message If an object is passed it must implement __toString() |
1019 | 1019 | * @param array $context Placeholders to be substituted in the message |
1020 | 1020 | */ |
@@ -1091,7 +1091,7 @@ discard block |
||
1091 | 1091 | } |
1092 | 1092 | |
1093 | 1093 | /** |
1094 | - * @return mixed|resource |
|
1094 | + * @return resource |
|
1095 | 1095 | * @throws \Exception |
1096 | 1096 | */ |
1097 | 1097 | protected function getResource() |
@@ -347,8 +347,7 @@ discard block |
||
347 | 347 | $closure->__invoke($this); |
348 | 348 | } |
349 | 349 | $this->getLogger()->info("[{$testName}] - " . $testCase->getSuccessMessage()); |
350 | - } |
|
351 | - catch ( \Exception $e ) |
|
350 | + } catch ( \Exception $e ) |
|
352 | 351 | { |
353 | 352 | $expectedCode = $testCase->getExceptionCode(); |
354 | 353 | $expectedClass = $testCase->getExceptionType(); |
@@ -1030,8 +1029,7 @@ discard block |
||
1030 | 1029 | if ( is_callable($this->formatter) ) |
1031 | 1030 | { |
1032 | 1031 | $message = $this->formatter->__invoke(static::$logLevels[$level][4], $message, $context); |
1033 | - } |
|
1034 | - else |
|
1032 | + } else |
|
1035 | 1033 | { |
1036 | 1034 | $message = $this->formatMessage($level, $message, $context); |
1037 | 1035 | } |