Extend this base class if you want to decorate functionality of the client
Inheritance: implements fxmlrpc\ClientInterface
Exemple #1
0
 /** {@inheritdoc} */
 public function call($methodName, array $arguments = [])
 {
     $startTime = microtime(true);
     $result = parent::call($methodName, $arguments);
     $this->timer->recordTiming(microtime(true) - $startTime, $methodName, $arguments);
     return $result;
 }
 public function testMulticallMethodWrapped()
 {
     $this->wrapped->expects($this->once())->method('multicall')->will($this->returnValue('m'));
     $this->assertSame('m', $this->decorator->multicall());
 }