mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Check for the methods that will be called.
Check the same methods that are called. Without this diffs are not printed for failures. Fixes #3503
This commit is contained in:
parent
2e4bde017e
commit
659715664d
1 changed files with 4 additions and 4 deletions
|
@ -251,11 +251,11 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
$testName = get_class($test) . '(' . $test->getName() . ')';
|
||||
|
||||
$actualMsg = $expectedMsg = null;
|
||||
if (method_exists($message, 'comparisonFailure')) {
|
||||
$failure = $message->comparisonFailure();
|
||||
if (method_exists($message, 'getComparisonFailure')) {
|
||||
$failure = $message->getComparisonFailure();
|
||||
if (is_object($failure)) {
|
||||
$actualMsg = $message->getComparisonFailure()->getActualAsString();
|
||||
$expectedMsg = $message->getComparisonFailure()->getExpectedAsString();
|
||||
$actualMsg = $failure->getActualAsString();
|
||||
$expectedMsg = $failure->getExpectedAsString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue