UserProfilePhotosTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAccessors() 0 11 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * Team: jungle
5
 * User: Roma Baranenko
6
 * Contacts: <[email protected]>
7
 * Date: 05.12.17
8
 * Time: 18:50
9
 */
10
11
namespace TelegramBotAPI\Tests\Types;
12
13
14
use PHPUnit\Framework\TestCase;
15
use TelegramBotAPI\Types\UserProfilePhotos;
16
17
/**
18
 * Class UserProfilePhotosTest
19
 * @package TelegramBotAPI\Tests\Types
20
 * @author Roma Baranenko <[email protected]>
21
 */
22
class UserProfilePhotosTest extends TestCase {
23
24
    public function testAccessors() {
25
26
        $obj = new UserProfilePhotos();
27
28
        $obj->setPhotos(array());
29
        $obj->setTotalCount(1);
30
31
        $this->assertEquals(1, $obj->getTotalCount());
32
33
        $this->assertJson(json_encode($obj));
34
    }
35
}
36