Kraken\_Unit\Promise\_Partial\PromiseRejectedPartial::testApiSuccess_CallsThenWithValidArguments_ForRejectedPromise PHP Метод

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

    public function testApiSuccess_CallsThenWithValidArguments_ForRejectedPromise()
    {
        $test = $this->getTest();
        $callable = function () {
        };
        $promise = $this->createPromiseMock(['then']);
        $promise->expects($test->once())->method('then')->with($callable, null, null);
        $promise->success($callable);
    }
PromiseRejectedPartial