Completed
Branch 2.x (c99d86)
by Julián
08:01
created

ApnsReceiverTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * Unified push notification services abstraction (http://github.com/juliangut/tify).
5
 *
6
 * @license BSD-3-Clause
7
 * @link https://github.com/juliangut/tify
8
 * @author Julián Gutiérrez <[email protected]>
9
 */
10
11
namespace Jgut\Tify\Tests\Receiver;
12
13
use Jgut\Tify\Receiver\ApnsReceiver;
14
15
/**
16
 * APNS device receiver tests.
17
 */
18
class ApnsReceiverTest extends \PHPUnit_Framework_TestCase
19
{
20
    /**
21
     * @var ApnsReceiver
22
     */
23
    protected $receiver;
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function setUp()
29
    {
30
        $this->receiver = new ApnsReceiver('9a4ecb987ef59c88b12035278b86f26d448835939a4ecb987ef59c88b1203527');
31
    }
32
33
    /**
34
     * @expectedException \InvalidArgumentException
35
     */
36
    public function testBadToken()
37
    {
38
        $this->receiver->setToken('non_hex_short_token');
39
    }
40
}
41