/**
  * Invokes the remote execution of the passed remote method.
  *
  * @param string $method The remote method to call
  * @param array  $params The parameters for the method call
  *
  * @return mixed The result of the remote method call
  */
 public function __call($method, $params)
 {
     $methodCall = new RemoteMethodCall($this->__getClassName(), $method, $this->__getSession()->getSessionId());
     foreach ($params as $key => $value) {
         $methodCall->addParameter($key, $value);
     }
     return $this->__invoke($methodCall, $this->__getSession());
 }
 /**
  * Test is a method name passed to the constructor will be returned.
  *
  * @return void
  */
 public function testGetMethodName()
 {
     $this->assertSame(RemoteMethodCallTest::METHOD_NAME, $this->remoteMethodCall->getMethodName());
 }