Completed
Push — master ( 58620c...f23d9f )
by Vitaliy
02:20
created

PriorityTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A shouldSuccessCreateImmediately() 0 6 1
A shouldSuccessCreatePowerConsiderations() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the AppleApnPush package
5
 *
6
 * (c) Vitaliy Zhuk <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code
10
 */
11
12
namespace Tests\Apple\ApnPush\Model;
13
14
use Apple\ApnPush\Model\Priority;
15
use PHPUnit\Framework\TestCase;
16
17
class PriorityTest extends TestCase
18
{
19
    /**
20
     * @test
21
     */
22
    public function shouldSuccessCreateImmediately()
23
    {
24
        $priority = Priority::immediately();
25
26
        self::assertEquals(10, $priority->getValue());
27
    }
28
29
    /**
30
     * @test
31
     */
32
    public function shouldSuccessCreatePowerConsiderations()
33
    {
34
        $priority = Priority::powerConsiderations();
35
36
        self::assertEquals(5, $priority->getValue());
37
    }
38
}
39