Merge pull request #31 from srizzling/session-undefined

[MINOR] Session variable was undefined in Basic Context
This commit is contained in:
Sean Harvey 2014-04-09 13:56:16 +12:00
commit 7b85ffdcde
1 changed files with 2 additions and 2 deletions

View File

@ -606,12 +606,12 @@ JS;
if(trim($negate)) {
if (preg_match($regex, $actual)) {
$message = sprintf('The text "%s" was found in the text of the "%s" region.', $text, $region);
throw new \Exception($message, $this->session);
throw new \Exception($message, $this->getSession());
}
} else {
if (!preg_match($regex, $actual)) {
$message = sprintf('The text "%s" was not found anywhere in the text of the "%s" region.', $text, $region);
throw new \Exception($message, $this->session);
throw new \Exception($message, $this->getSession());
}
}