/**
  * @group test
  * The get first charge test method.
  */
 public function testGetFirstWhenConfigValidShouldGetTheFirstCharge()
 {
     date_default_timezone_set("UTC");
     $testConfig = new TestServicesConfig();
     $chargeSvc = new HpsCreditService($testConfig->ValidMultiUseConfig());
     $dateFormat = 'Y-m-d\\TH:i:s.00\\Z';
     $dateMinus10 = new DateTime();
     $dateMinus10->sub(new DateInterval('PT10H'));
     $dateMinus10Utc = gmdate($dateFormat, $dateMinus10->Format('U'));
     $nowUtc = gmdate($dateFormat);
     $items = $chargeSvc->ListTransactions($dateMinus10Utc, $nowUtc, "CreditSale");
     // HpsTransactionType::Capture
     $this->assertTrue(0 != count($items));
     $charge0 = $items[0]->transactionId;
     $charge1 = $items[1]->transactionId;
     $this->assertNotNull($charge0);
     $this->assertNotNull($charge1);
     $this->assertNotEquals($charge0, $charge1);
 }