Fxmlrpc\ClientTest::testCallSerializer PHP Method

testCallSerializer() public method

public testCallSerializer ( )
    public function testCallSerializer()
    {
        $this->serializer->expects($this->once())->method('serialize')->with('methodName', array('p1', 'p2'))->will($this->returnValue('REQUEST'));
        $this->mockTransport('http://foo.com', 'REQUEST', 'RESPONSE');
        $this->parser->expects($this->once())->method('parse')->with('RESPONSE')->will($this->returnValue('NATIVE VALUE'));
        $this->assertSame('NATIVE VALUE', $this->client->call('methodName', array('p1', 'p2')));
    }