Kraken\_Unit\Network\Http\Component\Session\HttpSessionTest::testApiHandleError_PropagatesError PHP Метод

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

    public function testApiHandleError_PropagatesError()
    {
        $conn = $this->getMock(NetworkConnection::class, [], [], '', false);
        $ex = new Exception();
        $server = $this->createServer();
        $component = $this->createComponent(['handleError']);
        $component->expects($this->once())->method('handleError')->with($conn, $ex);
        $handler = $this->createSessionHandler();
        $session = $this->createSession($server, $component, $handler, []);
        $session->handleError($conn, $ex);
    }