| @@ 60-71 (lines=12) @@ | ||
| 57 | * @param \Exception $exception |
|
| 58 | * @param float $time |
|
| 59 | */ |
|
| 60 | public function addError(Test $test, \Exception $exception, $time) |
|
| 61 | { |
|
| 62 | $this->writeCase( |
|
| 63 | self::STATUS_ERROR, |
|
| 64 | $time, |
|
| 65 | $this->getStackTrace($exception), |
|
| 66 | TestFailure::exceptionToString($exception), |
|
| 67 | $test |
|
| 68 | ); |
|
| 69 | ||
| 70 | $this->currentTestPass = false; |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * A warning occurred. |
|
| @@ 120-131 (lines=12) @@ | ||
| 117 | * @param \Exception $error |
|
| 118 | * @param float $time |
|
| 119 | */ |
|
| 120 | public function addIncompleteTest(Test $test, \Exception $error, $time) |
|
| 121 | { |
|
| 122 | $this->writeCase( |
|
| 123 | self::STATUS_ERROR, |
|
| 124 | $time, |
|
| 125 | $this->getStackTrace($error), |
|
| 126 | self::MESSAGE_INCOMPLETE_TEST . $error->getMessage(), |
|
| 127 | $test |
|
| 128 | ); |
|
| 129 | ||
| 130 | $this->currentTestPass = false; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * Risky test. |
|
| @@ 140-151 (lines=12) @@ | ||
| 137 | * @param \Exception $exception |
|
| 138 | * @param float $time |
|
| 139 | */ |
|
| 140 | public function addRiskyTest(Test $test, \Exception $exception, $time) |
|
| 141 | { |
|
| 142 | $this->writeCase( |
|
| 143 | self::STATUS_ERROR, |
|
| 144 | $time, |
|
| 145 | $this->getStackTrace($exception), |
|
| 146 | self::MESSAGE_RISKY_TEST . $exception->getMessage(), |
|
| 147 | $test |
|
| 148 | ); |
|
| 149 | ||
| 150 | $this->currentTestPass = false; |
|
| 151 | } |
|
| 152 | ||
| 153 | /** |
|
| 154 | * Skipped test. |
|
| @@ 160-171 (lines=12) @@ | ||
| 157 | * @param \Exception $exception |
|
| 158 | * @param float $time |
|
| 159 | */ |
|
| 160 | public function addSkippedTest(Test $test, \Exception $exception, $time) |
|
| 161 | { |
|
| 162 | $this->writeCase( |
|
| 163 | self::STATUS_ERROR, |
|
| 164 | $time, |
|
| 165 | $this->getStackTrace($exception), |
|
| 166 | self::MESSAGE_SKIPPED_TEST . $exception->getMessage(), |
|
| 167 | $test |
|
| 168 | ); |
|
| 169 | ||
| 170 | $this->currentTestPass = false; |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * A testsuite started. |
|
| @@ 131-142 (lines=12) @@ | ||
| 128 | * @param \Throwable $error |
|
| 129 | * @param float $time |
|
| 130 | */ |
|
| 131 | public function addIncompleteTest(Test $test, \Throwable $error, float $time): void |
|
| 132 | { |
|
| 133 | $this->writeCase( |
|
| 134 | self::STATUS_ERROR, |
|
| 135 | $time, |
|
| 136 | $this->getStackTrace($error), |
|
| 137 | self::MESSAGE_INCOMPLETE_TEST . $error->getMessage(), |
|
| 138 | $test |
|
| 139 | ); |
|
| 140 | ||
| 141 | $this->currentTestPass = false; |
|
| 142 | } |
|
| 143 | ||
| 144 | /** |
|
| 145 | * Risky test. |
|
| @@ 151-162 (lines=12) @@ | ||
| 148 | * @param \Throwable $exception |
|
| 149 | * @param float $time |
|
| 150 | */ |
|
| 151 | public function addRiskyTest(Test $test, \Throwable $exception, float $time): void |
|
| 152 | { |
|
| 153 | $this->writeCase( |
|
| 154 | self::STATUS_ERROR, |
|
| 155 | $time, |
|
| 156 | $this->getStackTrace($exception), |
|
| 157 | self::MESSAGE_RISKY_TEST . $exception->getMessage(), |
|
| 158 | $test |
|
| 159 | ); |
|
| 160 | ||
| 161 | $this->currentTestPass = false; |
|
| 162 | } |
|
| 163 | ||
| 164 | /** |
|
| 165 | * Skipped test. |
|
| @@ 171-182 (lines=12) @@ | ||
| 168 | * @param \Throwable $exception |
|
| 169 | * @param float $time |
|
| 170 | */ |
|
| 171 | public function addSkippedTest(Test $test, \Throwable $exception, float $time): void |
|
| 172 | { |
|
| 173 | $this->writeCase( |
|
| 174 | self::STATUS_ERROR, |
|
| 175 | $time, |
|
| 176 | $this->getStackTrace($exception), |
|
| 177 | self::MESSAGE_SKIPPED_TEST . $exception->getMessage(), |
|
| 178 | $test |
|
| 179 | ); |
|
| 180 | ||
| 181 | $this->currentTestPass = false; |
|
| 182 | } |
|
| 183 | ||
| 184 | /** |
|
| 185 | * A testsuite started. |
|