React\Promise\PromiseTest::shouldFulfillIfFullfilledWithSimplePromise PHP Method

shouldFulfillIfFullfilledWithSimplePromise() public method

    public function shouldFulfillIfFullfilledWithSimplePromise()
    {
        $adapter = $this->getPromiseTestAdapter();
        $mock = $this->createCallableMock();
        $mock->expects($this->once())->method('__invoke')->with($this->identicalTo('foo'));
        $adapter->promise()->then($mock);
        $adapter->resolve(new SimpleFulfilledTestPromise());
    }