Exemplo n.º 1
0
 public function testGetTransaction()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->setTransaction(new \TPWeb\TargetPay\Transaction\IVR());
     $this->assertEquals("IVR", $targetPay->getTransaction(true));
 }
Exemplo n.º 2
0
 /**
  * @expectedException TPWeb\TargetPay\Exception\TransactionTypeException
  */
 public function testSetTransactionMethod()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->setTransaction("WRONG TRANSACTION TYPE");
 }