We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68ccf63 + f75bae4 commit a6a3ef6Copy full SHA for a6a3ef6
features/steps/then.php
@@ -7,7 +7,10 @@
7
$steps->Then(
8
'/^the return code should( not)? be (\d+)$/',
9
function ( $world, $not, $return_code ) {
10
- if ( ( ! $not && $return_code !== $world->result->return_code ) || ( $not && $return_code === $world->result->return_code ) ) {
+ if (
11
+ ( ! $not && (int) $return_code !== $world->result->return_code )
12
+ || ( $not && (int) $return_code === $world->result->return_code )
13
+ ) {
14
throw new RuntimeException( $world->result );
15
}
16
0 commit comments