React\Promise\PromiseTest\RejectTestTrait::rejectShouldRejectWithFulfilledPromise PHP Method

rejectShouldRejectWithFulfilledPromise() public method

    public function rejectShouldRejectWithFulfilledPromise()
    {
        $adapter = $this->getPromiseTestAdapter();
        $mock = $this->createCallableMock();
        $mock->expects($this->once())->method('__invoke')->with($this->identicalTo(1));
        $adapter->promise()->then($this->expectCallableNever(), $mock);
        $adapter->reject(Promise\resolve(1));
    }