public function testShouldThrowHpsCheckException()
 {
     try {
         $this->checkService->sale(TestCheck::invalidCheckHolder(), 5.0);
     } catch (HpsCheckException $e) {
         $this->assertEquals('1', $e->code);
     }
 }
Exemple #2
0
 /**
  * @expectedException       HpsCheckException
  * @expectedCode            1
  */
 public function testShouldThrowHpsCheckException()
 {
     $this->checkService->sale('SALE', TestCheck::invalidCheckHolder(), 5.0);
 }