Fxmlrpc\ProxyTest::testCallingNamespaceMethodWithCustomSeparator PHP Method

testCallingNamespaceMethodWithCustomSeparator() public method

    public function testCallingNamespaceMethodWithCustomSeparator()
    {
        $proxy = new Proxy($this->client, '_');
        $this->client->expects($this->at(0))->method('call')->with('namespace_method', array(1, 2))->will($this->returnValue('namespace method return'));
        $this->client->expects($this->at(1))->method('call')->with('namespace_another_namespace_method', array(1, 2))->will($this->returnValue('another namespace method return'));
        $this->assertSame('namespace method return', $proxy->namespace->method(1, 2));
        $this->assertSame('another namespace method return', $proxy->namespace->another_namespace->method(1, 2));
    }