-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1053 from nfephp-org/testes
Adicionando teste método Tools::sefazCCe
- Loading branch information
Showing
7 changed files
with
91 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1062,6 +1062,20 @@ public function test_tagISSQN(): void | |
$this->validarCriacaoTag2($std, $element, 'ISSQN'); | ||
} | ||
|
||
public function test_taginfRespTec(): void | ||
{ | ||
$std = new \stdClass(); | ||
$std->CNPJ = '76038276000120'; | ||
$std->xContato = 'Fulano de Tal'; | ||
$std->email = '[email protected]'; | ||
$std->fone = '51999999999'; | ||
$std->CSRT = '456'; | ||
$std->idCSRT = '123'; | ||
|
||
$element = $this->make->taginfRespTec($std); | ||
$this->validarCriacaoTag2($std, $element, 'infRespTec', ['CSRT']); | ||
} | ||
|
||
private function validarCriacaoTag2( | ||
\stdClass $std, | ||
\DOMElement $element, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<nfeDadosMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4"> | ||
<envEvento xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.00"> | ||
<idLote>12345</idLote> | ||
<evento xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.00"> | ||
<infEvento Id="ID1101103522060573092800014555001000004866158330292301"> | ||
<cOrgao>35</cOrgao> | ||
<tpAmb>2</tpAmb> | ||
<CNPJ>93623057000128</CNPJ> | ||
<chNFe>35220605730928000145550010000048661583302923</chNFe> | ||
<dhEvento>2024-05-31T11:59:12-03:00</dhEvento> | ||
<tpEvento>110110</tpEvento> | ||
<nSeqEvento>1</nSeqEvento> | ||
<verEvento>1.00</verEvento> | ||
<detEvento versao="1.00"> | ||
<descEvento>Carta de Correcao</descEvento> | ||
<xCorrecao>Descrição da correção</xCorrecao> | ||
<xCondUso>A Carta de Correcao e disciplinada pelo paragrafo 1o-A do art. 7o do Convenio S/N, de 15 de dezembro de 1970 e pode ser utilizada para regularizacao de erro ocorrido na emissao de documento fiscal, desde que o erro nao esteja relacionado com: I - as variaveis que determinam o valor do imposto tais como: base de calculo, aliquota, diferenca de preco, quantidade, valor da operacao ou da prestacao; II - a correcao de dados cadastrais que implique mudanca do remetente ou do destinatario; III - a data de emissao ou de saida.</xCondUso> | ||
</detEvento> | ||
</infEvento> | ||
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> | ||
<SignedInfo> | ||
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> | ||
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> | ||
<Reference URI="#ID1101103522060573092800014555001000004866158330292301"> | ||
<Transforms> | ||
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> | ||
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> | ||
</Transforms> | ||
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> | ||
<DigestValue>QBaThHO7pc+FByih9ObBjIIV4KY=</DigestValue> | ||
</Reference> | ||
</SignedInfo> | ||
<SignatureValue>le0uCxGKCZr9g8D62Y6xiN3LOpx7OIzVYPKt5r+RdTKDxC4mcdvVr1eAUIYf02eWDMh2becLFSgKb0751rvOckQ3KCkClN0Q8CCExSAfrr0THRjVw00hXX1RBUwFhG5xgPbDikzJTIoxgN8zqUAqAU8HDtjw6IX3Je2B/zB9SDbjJ317DSHKVUzx+f6MxNPRrx1tgHmMFaV6XEUbzSSZ86tb2Q1Oy5JE8wPc60fv4HoLkglHDFSWmwV1P7Kg/xchFnV9E/6FaFrohigqmv0WxhdX6IYHrl90erx5ciQDZd9I+UxtsEsGlFhq4Ppw8+t5WYpfZXiBbqhrzan2OzBC2zODaHWT2KdOTDQCprYGv0vh7xkGuRkS8q6KWLsKuSzXjCkT5WNhjF1ymOTOGTs8/1pms8myLwYR0n9SjATTzWEZU1EhmJudpoVwEuuv/l1G0Z7WTMFU1A4z/vguJWMlu5xoko7tUPiGZpfEcPp2cfpY3SYWKDvMh5wgmeLzZ+kuEVK1U7p/5H2mlHbBvO7FtBv/oVxa2ysPRYLHb0f/0turfBDe9SU+3XDe0+0FELim9HVBc2dnM5P91LvZnGNX0E7El1b88bjzFq+Z3LTSFJBTCp2BrQ3zQ1BV57334+v+Qj3KVGXE7EjdRJlqMajZXyMXbTYb0syxBVuTEM3BDpo=</SignatureValue> | ||
<KeyInfo> | ||
<X509Data> | ||
<X509Certificate>MIIFkDCCA3gCCQD1479OxEO9njANBgkqhkiG9w0BAQsFADCBiTELMAkGA1UEBhMCQlIxGjAYBgNVBAgMEVJpbyBHcmFuZGUgZG8gU3VsMRUwEwYDVQQHDAxQb3J0byBBbGVncmUxEzARBgNVBAoMCm5mZXBocC1vcmcxEzARBgNVBAsMCm5mZXBocC1vcmcx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