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

MobileCertificateTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 3
dl 0
loc 25
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCertificate() 0 9 1
A testCertificateInvalidRequest() 0 9 1
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