public function testResponse()
 {
     $request = $this->object->request('', []);
     $this->assertInstanceOf('hiqdev\\php\\merchant\\OmnipayRequest', $request);
     $response = $this->object->response($request);
     $this->assertInstanceOf('hiqdev\\php\\merchant\\webmoney\\OmnipayResponse', $response);
 }
Example #2
0
 /**
  * @return \Omnipay\Common\Message\AbstractRequest
  */
 public function getWorker()
 {
     if ($this->_worker === null) {
         $this->_worker = $this->merchant->getWorker()->{$this->getType()}($this->getData());
     }
     return $this->_worker;
 }