Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function open($path)
 {
     $result = $this->call('startSession', array('', $this->encoder->encodeFileContent($path), true, ''));
     return $this->createEnvelope($result['Sesscode'], $result['SignedDocInfo']);
 }
Exemplo n.º 2
0
 public function testEncodeFileContent()
 {
     $path = $this->createFileWithContent('any carnal pleasu');
     $encoder = new Encoder();
     $this->assertContains('YW55IGNhcm5hbCBwbGVhc3U=', $encoder->encodeFileContent($path));
 }