call() public method

public call ( $methodName, array $arguments = [] )
$arguments array
Beispiel #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 testCallInvokesWrappedInstance()
 {
     $this->wrapped->expects($this->once())->method('call')->with('method', array('arg1', 'arg2'))->will($this->returnValue('response'));
     $this->assertSame('response', $this->decorator->call('method', array('arg1', 'arg2')));
 }