Throw an exception instead of using assert

This commit is contained in:
Samuel ROZE
2017-06-22 10:49:55 +01:00
parent 36565deb4e
commit fe2e6dd61f
@@ -41,6 +41,8 @@ class FeatureContext implements Context
*/
public function theResponseShouldBeReceived()
{
assert($this->response !== null);
if ($this->response === null) {
throw new \RuntimeException('No response received');
}
}
}