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