コード例 #1
0
 /**
  * tests the Paymentprocess when apikey has spaces
  *
  * This testcase can not be reproduced.
  */
 public function testProcessPaymentWithSpaceInApikey()
 {
     $this->_apiTestKey = $this->_apiTestKey . " ";
     $this->_paymentProcessor = new Services_Paymill_PaymentProcessor($this->_apiTestKey, $this->_apiUrl, null, null, $this);
     $this->_paymentProcessor->setAmount(1000);
     $this->_paymentProcessor->setCurrency('EUR');
     $this->_paymentProcessor->setEmail('*****@*****.**');
     $this->_paymentProcessor->setName('John Doe');
     $this->_paymentProcessor->setDescription('Deuterium Cartridge');
     $this->_paymentProcessor->setToken(TOKEN);
     $this->markTestIncomplete('This testcase can not be reproduced.');
     $this->assertFalse($this->ProcessPayment());
     $this->assertEquals('Exception thrown from paymill wrapper.', $this->_actualLoggingMessage);
 }