| @@ 15-28 (lines=14) @@ | ||
| 12 | * @expectedException RuntimeException |
|
| 13 | * @expectedExceptionMessage File "" does not exist |
|
| 14 | */ |
|
| 15 | public function testRequiredFileParameters() |
|
| 16 | { |
|
| 17 | try { |
|
| 18 | $this->client->get(new Timestamp( |
|
| 19 | 'adoc', |
|
| 20 | '' |
|
| 21 | )); |
|
| 22 | } catch (\Isign\Exception\QueryValidator $e) { |
|
| 23 | $this->assertCount(3, $e->getViolations()); |
|
| 24 | return; |
|
| 25 | } |
|
| 26 | ||
| 27 | $this->fail('Expected exception was not thrown'); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function testStatusOk() |
|
| 31 | { |
|
| @@ 25-38 (lines=14) @@ | ||
| 22 | * @expectedException RuntimeException |
|
| 23 | * @expectedExceptionMessage File "" does not exist |
|
| 24 | */ |
|
| 25 | public function testRequiredFileParameters() |
|
| 26 | { |
|
| 27 | try { |
|
| 28 | /** @var Isign\Document\CheckResult $statusResult */ |
|
| 29 | $statusResult = $this->client->get( |
|
| 30 | new Check('pdf', null) |
|
| 31 | ); |
|
| 32 | } catch (\Isign\Exception\QueryValidator $e) { |
|
| 33 | $this->assertCount(3, $e->getViolations()); |
|
| 34 | return; |
|
| 35 | } |
|
| 36 | ||
| 37 | $this->fail('Expect exception was not thrown'); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function testStatusOk() |
|
| 41 | { |
|