/** * @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()); }
/** * @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()); }