Skip to content

Commit

Permalink
Correcting code to be what we actually used in the screencast
Browse files Browse the repository at this point in the history
And also, the original code doesn't actually work - thanks to Mark Fox for the tip via the comments.
  • Loading branch information
weaverryan committed Sep 3, 2013
1 parent bbe300d commit a78b74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knpu/behat.rst
Expand Up @@ -127,7 +127,7 @@ into a ``test/`` directory::
/** @Then /^I should see "([^"]*)" in the output$/ */
public function iShouldSeeInTheOutput($string)
{
if (!array_search($string, $this->output)) {
if (array_search($string, $this->output) === false) {
throw new \Exception(sprintf('Did not see "%s" in the output', $string));
}
}
Expand Down

0 comments on commit a78b74f

Please sign in to comment.