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

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

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