public iShouldBePromptedWith ( Behat\Gherkin\Node\PyStringNode $question ) | ||
$question | Behat\Gherkin\Node\PyStringNode |
public function iShouldBePromptedWith(PyStringNode $question)
{
$stringQuestion = (string) $question;
if (!$this->prompter->hasBeenAsked($stringQuestion)) {
throw new \Exception("The prompt was not shown: {$stringQuestion}");
}
}