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)); }
/** * {@inheritDoc} */ public function close(Envelope $envelope) { $this->call('closeSession', array($envelope->getSession()->getId())); }