mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
Throw an exception instead of using assert
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user