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