@@ 363-371 (lines=9) @@ | ||
360 | ; |
|
361 | } |
|
362 | ||
363 | if ($promise->state()->equals(State::REJECTED())) { |
|
364 | $this |
|
365 | ->given($reason = $this->defaultRejectReason()) |
|
366 | ->then() |
|
367 | ->delegateCall($onRejected) |
|
368 | ->withArguments($reason) |
|
369 | ->once() |
|
370 | ; |
|
371 | } |
|
372 | } |
|
373 | ||
374 | /** |
|
@@ 406-414 (lines=9) @@ | ||
403 | ; |
|
404 | } |
|
405 | ||
406 | if ($promise->state()->equals(State::REJECTED())) { |
|
407 | $this |
|
408 | ->given($reason = $this->defaultRejectReason()) |
|
409 | ->then() |
|
410 | ->delegateCall($onFulfilledOrRejected) |
|
411 | ->withArguments($reason) |
|
412 | ->once() |
|
413 | ; |
|
414 | } |
|
415 | } |
|
416 | ||
417 | /** |