Kraken\_Unit\Promise\_Partial\FunctionAnyPartial::testApiAny_ResolvesPromise_WithPromisedInputValues PHP Метод

testApiAny_ResolvesPromise_WithPromisedInputValues() публичный Метод

    public function testApiAny_ResolvesPromise_WithPromisedInputValues()
    {
        $test = $this->getTest();
        $mock = $test->createCallableMock();
        $mock->expects($test->once())->method('__invoke')->with($test->identicalTo(1));
        Promise::any([Promise::doResolve(1), Promise::doResolve(2), Promise::doResolve(3)])->then($mock);
    }