| @@ 101-110 (lines=10) @@ | ||
| 98 | /** |
|
| 99 | * @Then /^it should pass$/ |
|
| 100 | */ |
|
| 101 | public function itShouldPass() |
|
| 102 | { |
|
| 103 | if (0 === $this->getProcessExitCode()) { |
|
| 104 | return; |
|
| 105 | } |
|
| 106 | ||
| 107 | throw new \DomainException( |
|
| 108 | 'Behat was expecting to pass, but failed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() |
|
| 109 | ); |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * @Then /^it should pass with(?: "([^"]+)"|:)$/ |
|
| @@ 124-133 (lines=10) @@ | ||
| 121 | /** |
|
| 122 | * @Then /^it should fail$/ |
|
| 123 | */ |
|
| 124 | public function itShouldFail() |
|
| 125 | { |
|
| 126 | if (0 !== $this->getProcessExitCode()) { |
|
| 127 | return; |
|
| 128 | } |
|
| 129 | ||
| 130 | throw new \DomainException( |
|
| 131 | 'Behat was expecting to fail, but passed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() |
|
| 132 | ); |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * @Then /^it should fail with(?: "([^"]+)"|:)$/ |
|