Ejemplo n.º 1
0
 public function testSuccess()
 {
     $methodName = 'method';
     $args = ['args'];
     $result = $this->getMockBuilder(\OpenPayU_Result::class)->getMock();
     $this->rawMethod->expects($this->once())->method('call')->with($this->equalTo($methodName), $this->equalTo($args))->willReturn($result);
     $this->assertEquals($result, $this->model->call($methodName, $args));
 }
Ejemplo n.º 2
0
 public function __construct(MethodCaller\Raw $rawMethod, \Orba\Payupl\Logger\Logger $logger)
 {
     parent::__construct($rawMethod, $logger);
 }