private function readAutenticacao(Transaction $transaction) { $authentication = new Authentication(); $authentication->setCode($this->getValue('//c:transacao/c:autenticacao/c:codigo')); $authentication->setMessage($this->getValue('//c:transacao/c:autenticacao/c:mensagem')); $authentication->setDateTime($this->getValue('//c:transacao/c:autenticacao/c:data-hora')); $authentication->setTotal($this->getValue('//c:transacao/c:autenticacao/c:valor')); $authentication->setEci($this->getValue('//c:transacao/c:autenticacao/c:eci')); $transaction->setAuthentication($authentication); }
/** * @test */ public function getEci() { $this->assertEquals(5, $this->authentication->getEci()); }