Completed
Push — master ( 56557e...bc0eb2 )
by Julián
02:54
created

ApnsTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Push notification services abstraction (http://github.com/juliangut/tify)
4
 *
5
 * @link https://github.com/juliangut/tify for the canonical source repository
6
 *
7
 * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
 */
9
10
namespace Jgut\Tify\Tests\Recipient;
11
12
use Jgut\Tify\Recipient\Apns;
13
14
/**
15
 * @covers \Jgut\Tify\Recipient\Apns
16
 */
17
class ApnsTest extends \PHPUnit_Framework_TestCase
18
{
19
    protected $recipient;
20
21
    public function setUp()
22
    {
23
        $this->recipient = new Apns('9a4ecb987ef59c88b12035278b86f26d448835939a4ecb987ef59c88b1203527');
24
    }
25
26
    /**
27
     * @covers \Jgut\Tify\Recipient\Apns::setToken
28
     *
29
     * @expectedException \InvalidArgumentException
30
     */
31
    public function testBadToken()
32
    {
33
        $this->recipient->setToken('non_hex_short_token');
34
    }
35
}
36