@@ 161-163 (lines=3) @@ | ||
158 | public function itShouldFail($success) |
|
159 | { |
|
160 | if ('fail' === $success) { |
|
161 | if (0 === $this->getExitCode()) { |
|
162 | echo 'Actual output:' . PHP_EOL . PHP_EOL . $this->getOutput(); |
|
163 | } |
|
164 | ||
165 | PHPUnit_Framework_Assert::assertNotEquals(0, $this->getExitCode()); |
|
166 | } else { |
|
@@ 167-169 (lines=3) @@ | ||
164 | ||
165 | PHPUnit_Framework_Assert::assertNotEquals(0, $this->getExitCode()); |
|
166 | } else { |
|
167 | if (0 !== $this->getExitCode()) { |
|
168 | echo 'Actual output:' . PHP_EOL . PHP_EOL . $this->getOutput(); |
|
169 | } |
|
170 | ||
171 | PHPUnit_Framework_Assert::assertEquals(0, $this->getExitCode()); |
|
172 | } |