Code Duplication    Length = 9-9 lines in 2 locations

Tests/Units/Promise/PromiseInterfaceTestCase.php 2 locations

@@ 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
    /**