Kraken\_Unit\Promise\_Partial\FunctionResolvePartial::testApiDoResolve_ResolvesPromsie_WithPromisedValue PHP Метод

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

    public function testApiDoResolve_ResolvesPromsie_WithPromisedValue()
    {
        $test = $this->getTest();
        $expected = 123;
        $resolved = new PromiseFulfilled($expected);
        $mock = $test->createCallableMock();
        $mock->expects($test->once())->method('__invoke')->with($test->identicalTo($expected));
        Promise::doResolve($resolved)->then($mock, $test->expectCallableNever());
    }