Skip to content

Commit 4941f64

Browse files
committed
Show diff for 'contain' and 'not contain' as well
1 parent 03e5fdb commit 4941f64

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Context/Support.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,9 @@ protected function check_string( $output, $expected, $action, $message = false,
123123
$message = $output;
124124
}
125125

126-
// Add diff for 'be' comparisons to show exact differences.
127-
if ( 'be' === $action ) {
128-
$diff = $this->generate_diff( $expected, rtrim( $output, "\n" ) );
129-
if ( ! empty( $diff ) ) {
130-
$message .= "\n\n" . $diff;
131-
}
126+
$diff = $this->generate_diff( $expected, rtrim( $output, "\n" ) );
127+
if ( ! empty( $diff ) ) {
128+
$message .= "\n\n" . $diff;
132129
}
133130

134131
throw new Exception( $message );

0 commit comments

Comments
 (0)