コード例 #1
0
 /**
  * The invalid HPS licenseId test method.
  *
  * @expectedException        HpsAuthenticationException
  * @expectedExceptionMessage Authentication Error. Please double check your
  * service configuration
  */
 public function testChargeWhenHpsLicenseIdIsInvalidShouldThrowHpsException()
 {
     $testConfig = new TestServicesConfig();
     $ChargeAmount = 50;
     $Currency = "usd";
     $chargeSvc = new HpsCreditService($testConfig->BadLicenseId());
     $chargeSvc->Charge($ChargeAmount, $Currency, TestCreditCard::validVisaCreditCard(), TestCardHolder::validCardHolder());
 }