Пример #1
0
 public function testGetTransaction()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->setTransaction(new \TPWeb\TargetPay\Transaction\IVR());
     $this->assertEquals("IVR", $targetPay->getTransaction(true));
 }
Пример #2
0
 /**
  * @expectedException TPWeb\TargetPay\Exception\TransactionTypeException
  */
 public function testGetTransaction()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->getTransaction();
 }