Kraken\_Unit\Promise\_Partial\PromiseFulfilledPartial::testApiAlways_DoesNotSuppressValue_ForFulfilledPromise PHP Метод

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

    public function testApiAlways_DoesNotSuppressValue_ForFulfilledPromise()
    {
        $deferred = $this->createDeferred();
        $test = $this->getTest();
        $value = new StdClass();
        $mock = $test->createCallableMock();
        $mock->expects($test->once())->method('__invoke')->with($test->identicalTo($value));
        $deferred->resolve($value);
        $deferred->getPromise()->always($test->expectCallableOnce())->then($mock);
    }
PromiseFulfilledPartial