| @@ 236-244 (lines=9) @@ | ||
| 233 | ; |
|
| 234 | } |
|
| 235 | ||
| 236 | if ($promise->state()->equals(State::REJECTED())) { |
|
| 237 | $this |
|
| 238 | ->given($reason = $this->defaultRejectReason()) |
|
| 239 | ->then() |
|
| 240 | ->delegateCall($catch) |
|
| 241 | ->withArguments($reason) |
|
| 242 | ->once() |
|
| 243 | ; |
|
| 244 | } |
|
| 245 | } |
|
| 246 | ||
| 247 | /** |
|
| @@ 279-287 (lines=9) @@ | ||
| 276 | ; |
|
| 277 | } |
|
| 278 | ||
| 279 | if ($promise->state()->equals(State::REJECTED())) { |
|
| 280 | $this |
|
| 281 | ->given($reason = $this->defaultRejectReason()) |
|
| 282 | ->then() |
|
| 283 | ->delegateCall($finally) |
|
| 284 | ->withArguments(null, $reason) |
|
| 285 | ->once() |
|
| 286 | ; |
|
| 287 | } |
|
| 288 | } |
|
| 289 | ||
| 290 | /** |
|