Exemplo n.º 1
0
 /**
  * @depends testSignStatusWaiting
  * @params Sign\MobileResult $result
  */
 public function testSignStatusOk(Sign\MobileResult $result)
 {
     sleep(TIMEOUT);
     /** @var Isign\Login\MobileStatusResult $result */
     $statusResult = $this->client->get(new Sign\MobileStatus($result->getToken()));
     $this->assertSame(Sign\MobileStatusResult::STATUS_OK, $statusResult->getStatus());
 }
Exemplo n.º 2
0
 /**
  * @depends testSignStatusWaiting
  * @params Sign\MobileResult $result
  */
 public function testSignStatusOk(Sign\MobileResult $result)
 {
     sleep(TIMEOUT);
     /** @var Isign\Login\MobileStatusResult $result */
     $statusResult = $this->client->get(new Sign\MobileStatus($result->getToken()));
     $this->assertSame(ResultInterface::STATUS_OK, $statusResult->getStatus());
     $this->assertSame('Signature1', $statusResult->getSignatureId());
     $this->assertNotEmpty($statusResult->getFile());
 }