Kraken\_Unit\Network\Websocket\Driver\WsDriverTest::testApiGetVersion_CallsMethodOnVersioner PHP Метод

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

    public function testApiGetVersion_CallsMethodOnVersioner()
    {
        $req = $this->getMock(HttpRequestInterface::class, [], [], '', false);
        $result = 'result';
        $ws = $this->createWsDriver();
        $versioner = $this->createVersioner();
        $versioner->expects($this->once())->method('getVersion')->with($req)->will($this->returnValue($result));
        $this->assertSame($result, $ws->getVersion($req));
    }