Exemplo n.º 1
0
 public function testGetSignatureReturnsSignatureById()
 {
     $signature = $this->getMockSignature();
     $signature->expects($this->once())->method('getId')->will($this->returnValue($signatureId = 'S01'));
     $envelope = new Envelope($this->getMockSession());
     $envelope->addSignature($signature);
     $this->assertSame($signature, $envelope->getSignature($signatureId));
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function close(Envelope $envelope)
 {
     $this->call('closeSession', array($envelope->getSession()->getId()));
 }