React\Promise\LazyPromiseTest::shouldCallFactoryIfThenIsInvoked PHP 메소드

shouldCallFactoryIfThenIsInvoked() 공개 메소드

    public function shouldCallFactoryIfThenIsInvoked()
    {
        $factory = $this->createCallableMock();
        $factory->expects($this->once())->method('__invoke');
        $p = new LazyPromise($factory);
        $p->then();
    }