Code Duplication    Length = 14-14 lines in 2 locations

tests/Integration/CheckTest.php 1 location

@@ 27-40 (lines=14) @@
24
     * @expectedException RuntimeException
25
     * @expectedExceptionMessage File "" does not exist
26
     */
27
    public function testRequiredFileParameters()
28
    {
29
        try {
30
            /** @var StatusResultInterface $statusResult */
31
            $statusResult = $this->client->get(
32
                new Check('pdf', null)
33
            );
34
        } catch (\Isign\Exception\QueryValidator $e) {
35
            $this->assertCount(3, $e->getViolations());
36
            return;
37
        }
38
39
        $this->fail('Expect exception was not thrown');
40
    }
41
42
    public function testStatusOk()
43
    {

tests/Integration/TimestampTest.php 1 location

@@ 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
    {