@@ 197-206 (lines=10) @@ | ||
194 | /** |
|
195 | * @Then /^it should pass$/ |
|
196 | */ |
|
197 | public function itShouldPass(): void |
|
198 | { |
|
199 | if (0 === $this->getProcessExitCode()) { |
|
200 | return; |
|
201 | } |
|
202 | ||
203 | throw new \DomainException( |
|
204 | 'Behat was expecting to pass, but failed with the following output:' . \PHP_EOL . \PHP_EOL . $this->getProcessOutput() |
|
205 | ); |
|
206 | } |
|
207 | ||
208 | /** |
|
209 | * @Then /^it should pass with(?: "([^"]+)"|:)$/ |
|
@@ 220-229 (lines=10) @@ | ||
217 | /** |
|
218 | * @Then /^it should fail$/ |
|
219 | */ |
|
220 | public function itShouldFail(): void |
|
221 | { |
|
222 | if (0 !== $this->getProcessExitCode()) { |
|
223 | return; |
|
224 | } |
|
225 | ||
226 | throw new \DomainException( |
|
227 | 'Behat was expecting to fail, but passed with the following output:' . \PHP_EOL . \PHP_EOL . $this->getProcessOutput() |
|
228 | ); |
|
229 | } |
|
230 | ||
231 | /** |
|
232 | * @Then /^it should fail with(?: "([^"]+)"|:)$/ |