Modificaciones a los features process variables, trigger wizard

This commit is contained in:
Wendy Nestor
2014-03-07 16:11:17 -04:00
parent 8a651c6c49
commit bafcc03075
4 changed files with 17 additions and 28 deletions

View File

@@ -931,6 +931,11 @@ class RestContext extends BehatContext
*/
public function theResponseStatusCodeShouldBe($httpStatus)
{
if(!(isset($this->_response))){
throw new \Exception('HTTP code does not match ' . $httpStatus .
' (actual: No response defined)'
);
}
if ((string)$this->_response->getStatusCode() !== $httpStatus) {
$message="";
if($bodyResponse=json_decode($this->_response->getBody(true))){