private function readTransacao(Transaction $transaction) { $transaction->setTid($this->getValue('//c:transacao/c:tid')); $transaction->setPan($this->getValue('//c:transacao/c:pan')); $transaction->setStatus($this->getValue('//c:transacao/c:status')); $transaction->setAuthenticationURL($this->getValue('//c:transacao/c:url-autenticacao')); }
public function testGetStatus() { $this->transaction->setStatus(2); $this->assertEquals(2, $this->transaction->getStatus()); }