Skip to content

Commit

Permalink
Returns result
Browse files Browse the repository at this point in the history
  • Loading branch information
davedevelopment committed May 15, 2020
1 parent 480facc commit 46084ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Mockery/RegExpCompatability.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public function expectExceptionMessageRegEx($regularExpression)
public static function assertMatchesRegEx($pattern, $string, $message = '')
{
if (method_exists(get_parent_class(), 'assertMatchesRegularExpression')) {
parent::assertMatchesRegularExpression($pattern, $string, $message);
return parent::assertMatchesRegularExpression($pattern, $string, $message);
}

self::assertRegExp($pattern, $string, $message);
return self::assertRegExp($pattern, $string, $message);
}
}

0 comments on commit 46084ce

Please sign in to comment.