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