@@ 205-214 (lines=10) @@ | ||
202 | /** |
|
203 | * @Then /^it should pass$/ |
|
204 | */ |
|
205 | public function itShouldPass() |
|
206 | { |
|
207 | if (0 === $this->getProcessExitCode()) { |
|
208 | return; |
|
209 | } |
|
210 | ||
211 | throw new \DomainException( |
|
212 | 'Behat was expecting to pass, but failed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() |
|
213 | ); |
|
214 | } |
|
215 | ||
216 | /** |
|
217 | * @Then /^it should pass with(?: "([^"]+)"|:)$/ |
|
@@ 228-237 (lines=10) @@ | ||
225 | /** |
|
226 | * @Then /^it should fail$/ |
|
227 | */ |
|
228 | public function itShouldFail() |
|
229 | { |
|
230 | if (0 !== $this->getProcessExitCode()) { |
|
231 | return; |
|
232 | } |
|
233 | ||
234 | throw new \DomainException( |
|
235 | 'Behat was expecting to fail, but passed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() |
|
236 | ); |
|
237 | } |
|
238 | ||
239 | /** |
|
240 | * @Then /^it should fail with(?: "([^"]+)"|:)$/ |