React\Promise\FunctionResolveTest::shouldResolveAThenable PHP Method

shouldResolveAThenable() public method

    public function shouldResolveAThenable()
    {
        $thenable = new SimpleFulfilledTestThenable();
        $mock = $this->createCallableMock();
        $mock->expects($this->once())->method('__invoke')->with($this->identicalTo('foo'));
        resolve($thenable)->then($mock, $this->expectCallableNever());
    }