Kraken\_Unit\Promise\_Partial\ApiCancelPartial::testApiCancel_CallsCanceller_OnAllChildrenWhenCalledOnRootPromise PHP Метод

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

    public function testApiCancel_CallsCanceller_OnAllChildrenWhenCalledOnRootPromise()
    {
        $deferred = $this->createDeferred();
        $test = $this->getTest();
        $promise = $deferred->getPromise();
        $promise->then()->then(null, null, $test->expectCallableOnce());
        $promise->then(null, null, $test->expectCallableOnce());
        $deferred->cancel();
    }