コード例 #1
0
ファイル: IVRTest.php プロジェクト: tpweb/targetpay
 public function testGetTransaction()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->setTransaction(new \TPWeb\TargetPay\Transaction\IVR());
     $this->assertEquals("IVR", $targetPay->getTransaction(true));
 }
コード例 #2
0
ファイル: ExceptionTest.php プロジェクト: tpweb/targetpay
 /**
  * @expectedException TPWeb\TargetPay\Exception\TransactionTypeException
  */
 public function testGetTransaction()
 {
     $targetPay = new TargetPay(null, $this->config);
     $targetPay->getTransaction();
 }