Completed
Push — master ( 114870...d35a30 )
by Žilvinas
03:56
created

MobileCertificateTest::testCertificate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
namespace Isign\Tests\Integration;
3
4
use Isign\Login;
5
use Isign\ResultInterface;
6
7
class MobileCertificateTest extends TestCase
8
{
9
    public function testCertificate()
10
    {
11
        /** @var Isign\Login\MobileCertificateResult $result */
12
        $result = $this->client->get(
13
            new Login\MobileCertificate(PHONE, CODE)
14
        );
15
16
        return $result;
17
    }
18
19
    /**
20
     * @expectedException Isign\Exception\InvalidData
21
     */
22
    public function testCertificateInvalidRequest()
23
    {
24
        /** @var Isign\Login\MobileCertificateResult $result */
25
        $result = $this->client->get(
26
            new Login\MobileCertificate('+37060000000', CODE)
27
        );
28
29
        return $result;
30
    }
31
}
32