| @@ 113-120 (lines=8) @@ | ||
| 110 | /** |
|
| 111 | * @Then /^it should pass with:$/ |
|
| 112 | */ |
|
| 113 | public function itShouldPassWith(PyStringNode $expectedOutput) |
|
| 114 | { |
|
| 115 | $this->itShouldPass(); |
|
| 116 | ||
| 117 | foreach ($expectedOutput->getStrings() as $expectedLine) { |
|
| 118 | Assert::assertRegExp('/' . preg_quote($expectedLine, '/') . '/sm', $this->behatRunner->getFullOutput()); |
|
| 119 | } |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * @Then /^it should fail with:$/ |
|
| @@ 125-132 (lines=8) @@ | ||
| 122 | /** |
|
| 123 | * @Then /^it should fail with:$/ |
|
| 124 | */ |
|
| 125 | public function itShouldFailWith(PyStringNode $expectedOutput) |
|
| 126 | { |
|
| 127 | $this->itShouldFail(); |
|
| 128 | ||
| 129 | foreach ($expectedOutput->getStrings() as $expectedLine) { |
|
| 130 | Assert::assertRegExp('/' . preg_quote($expectedLine, '/') . '/sm', $this->behatRunner->getFullOutput()); |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * @param string $path |
|