/**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $customerId = $this->_customerId;
     $shopId = $this->_shopId;
     $secret = $this->_secret;
     $language = $this->_language;
     $oToolkitClient = new WirecardCEE_QPay_ToolkitClient(array('CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, 'LANGUAGE' => $language, 'TOOLKIT_PASSWORD' => $this->_toolkitPassword));
     $this->object = $oToolkitClient->recurPayment($this->_sourceOrderNumber, $this->_amount, $this->_currency, $this->_orderDescription, $this->_orderNumber, $this->_depositFlag);
 }
 /**
  * Tests WirecardCEE_QPay_ToolkitClient->recurPayment()
  */
 public function testRecurPayment()
 {
     $object = new WirecardCEE_QPay_ToolkitClient(array('CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, 'LANGUAGE' => $this->_language, 'TOOLKIT_PASSWORD' => $this->_toolkitPassword));
     $oResult = $object->recurPayment($this->_sourceOrderNumber, $this->_amount, $this->_currency, $this->_orderDescription, $this->_orderNumber, $this->_depositFlag);
     $this->assertInstanceOf('WirecardCEE_QPay_Response_Toolkit_RecurPayment', $oResult);
     $this->assertEquals($oResult->getStatus(), 0);
     $this->assertFalse($oResult->hasFailed());
     $this->assertFalse($oResult->getError());
 }