|
@@ 351-357 (lines=7) @@
|
| 348 |
|
|
| 349 |
|
continue; |
| 350 |
|
} |
| 351 |
|
if ( $expectedCode && $expectedCode !== $code ) |
| 352 |
|
{ |
| 353 |
|
$this->getLogger()->error("Exception code({$code}) was expected to be ({$expectedCode})", [compact('testName'), $e]); |
| 354 |
|
$this->failedCount++; |
| 355 |
|
|
| 356 |
|
continue; |
| 357 |
|
} |
| 358 |
|
if ( $expectedClass && $expectedClass !== $exception ) |
| 359 |
|
{ |
| 360 |
|
$this->getLogger()->error("Exception class({$exception}) was expected to be ({$expectedClass})", [compact('testName'), $e]); |
|
@@ 358-364 (lines=7) @@
|
| 355 |
|
|
| 356 |
|
continue; |
| 357 |
|
} |
| 358 |
|
if ( $expectedClass && $expectedClass !== $exception ) |
| 359 |
|
{ |
| 360 |
|
$this->getLogger()->error("Exception class({$exception}) was expected to be ({$expectedClass})", [compact('testName'), $e]); |
| 361 |
|
$this->failedCount++; |
| 362 |
|
|
| 363 |
|
continue; |
| 364 |
|
} |
| 365 |
|
$this->getLogger()->info("[{$test}] - " . $testCase->getSuccessMessage()); |
| 366 |
|
} |
| 367 |
|
} |