/** * @test */ public function getAuthentication() { /* @var Authentication $authentication */ $authentication = $this->getMock(Authentication::class); $this->transaction->setAuthentication($authentication); $this->assertSame($authentication, $this->transaction->getAuthentication()); }
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); }