Behat/Behat — pull request #584 by fchris82 (2014-07-01 16:08:12+00:00)
Title: Enable "null" TableNode/PyStringNode parameters

We are using some tests when we allow the null TableNode or PyStringNode . Eg:

test.feature

Then I should get an email on "test1@mail.com"
#...
Then I should get an email on "test2@mail.com" with:
"""
This is a test mail!
"""
# OR
When I run "assetic:dump" command
# ...
When I run "assetic:dump" command with:
| option |
| --e=prod |
| --vvv |

FeatureContext.php

[^"]+)"(?:| with:)$/ */
public function iShouldGetAnEmail($email, PyStringNode $text = null)
{
//...
if ($text) {
// Check the content also if it is set
}
}