Test Failed
Push — master ( cdb9ec...73f61b )
by David
33s
created

MiscellaneousTest::testGetListEmojis()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
namespace FlexyProject\GitHub\Tests\Receiver;
3
4
use FlexyProject\GitHub\{
5
    Client, Receiver\Miscellaneous, Tests\AbstractTest
6
};
7
8
/**
9
 * Class MiscellaneousTest
10
 *
11
 * @package FlexyProject\GitHub\Tests
12
 */
13
class MiscellaneousTest extends AbstractTest
14
{
15
16
    /** @var Miscellaneous */
17
    protected $miscellaneous;
18
19
    /**
20
     * MiscellaneousTest constructor.
21
     *
22
     * @param null   $name
23
     * @param array  $data
24
     * @param string $dataName
25
     */
26
    public function __construct($name = null, array $data = [], $dataName = '')
27
    {
28
        parent::__construct($name, $data, $dataName);
29
30
        // Miscellaneous
31
        $this->miscellaneous = $this->client->getReceiver(Client::MISCELLANEOUS);
32
    }
33
34
    /**
35
     * Test list available Emojis
36
     */
37
    public function testGetListEmojis()
38
    {
39
        /** @var Miscellaneous\Emojis $emojis */
40
        $emojis = $this->miscellaneous->getReceiver(Miscellaneous::EMOJIS);
41
42
        $this->assertEquals(1508, count($emojis->get()));
43
    }
44
}