*/
protected function seeInNthElement($element, $position, $text, $negate = false)
{
- $method = $negate ? 'assertNotRegExp' : 'assertRegExp';
+ $method = $negate ? 'assertDoesNotMatchRegularExpression' : 'assertMatchesRegularExpression';
$rawPattern = preg_quote($text, '/');