示例#1
0
 /**
  * @see PaymentApi::ping()
  */
 public function testPingWrongCredentials()
 {
     try {
         $this->credentials->setApiLogin('wrong-login')->setApiKey('wrong-key');
         $rs = $this->object->ping();
     } catch (\Exception $e) {
         $this->assertInstanceOf('\\PayU\\PayUException', $e);
         $this->assertEquals('Invalid credentials', $e->getMessage());
         $this->assertEquals(0, $e->getCode());
     }
 }