示例#1
0
 public function testCreateXmlSignature()
 {
     $nfe = new Schemas\V200\DocumentNFe();
     $nfe->load('samples/35101158716523000119550010000000011003000000-nfe.xml');
     $cert = Certified::loadPfx($this->file, 'associacao');
     Certified::createXmlSignature($nfe, $cert);
     $nfe->save('samples/35101158716523000119550010000000011003000000-nfe-sign.xml');
 }