| @@ 109-118 (lines=10) @@ | ||
| 106 | /** |
|
| 107 | * @Then /^it should pass$/ |
|
| 108 | */ |
|
| 109 | public function itShouldPass() |
|
| 110 | { |
|
| 111 | if (0 === $this->getProcessExitCode()) { |
|
| 112 | return; |
|
| 113 | } |
|
| 114 | ||
| 115 | throw new \DomainException( |
|
| 116 | 'Behat was expecting to pass, but failed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() |
|
| 117 | ); |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * @Then /^it should pass with(?: "([^"]+)"|:)$/ |
|
| @@ 132-141 (lines=10) @@ | ||
| 129 | /** |
|
| 130 | * @Then /^it should fail$/ |
|
| 131 | */ |
|
| 132 | public function itShouldFail() |
|
| 133 | { |
|
| 134 | if (0 !== $this->getProcessExitCode()) { |
|
| 135 | return; |
|
| 136 | } |
|
| 137 | ||
| 138 | throw new \DomainException( |
|
| 139 | 'Behat was expecting to fail, but passed with the following output:' . PHP_EOL . PHP_EOL . $this->getProcessOutput() |
|
| 140 | ); |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * @Then /^it should fail with(?: "([^"]+)"|:)$/ |
|