public function testCallingMethod() { $this->client->expects($this->once())->method('call')->with('method', array('arg1', 'arg2'))->will($this->returnValue('VALUE')); $this->assertSame('VALUE', $this->proxy->method('arg1', 'arg2')); }