Kraken\_Unit\Promise\_Partial\ApiRejectPartial::testApiAlways_DoesNotSuppressRejection PHP Метод

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

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