Completed
Push — master ( 82a3a6...721814 )
by Дмитрий
05:02 queued 02:25
created

ServiceTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 16
rs 10
1
<?php
2
/**
3
 * SocialConnect project
4
 * @author: Patsura Dmitry https://github.com/ovr <[email protected]>
5
 */
6
7
namespace Test;
8
9
class ServiceTest extends TestCase
10
{
11
    public function testConstructSuccess()
12
    {
13
        $service = $this->getService();
14
        $this->assertInstanceOf(\SocialConnect\Auth\Service::class, $service);
15
    }
16
17
    public function testGetProvider()
18
    {
19
        $service = $this->getService();
20
        $vkProvider = $service->getProvider('Vk');
21
22
        $this->assertInstanceOf(\SocialConnect\Auth\Provider\Vk::class, $vkProvider);
23
    }
24
}
25