Kraken\_Unit\Channel\Extra\ResponseTest::testApiInvoke_CallsSendMethodWithPromise PHP Метод

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

    public function testApiInvoke_CallsSendMethodWithPromise()
    {
        $rep = $this->createResponse($this->createProtocol(), 'secret', [], ['send']);
        $rep->expects($this->once())->method('send')->will($this->returnCallback(function ($promise) {
            $this->assertInstanceOf(PromiseInterface::class, $promise);
            return $promise;
        }));
        $rep();
    }