Completed
Push — master ( 47d2ac...3fd795 )
by Marijn
22s
created

AccessTokenTest::testAccessTokenConstructor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
namespace Tests\Werkspot\BingAdsApiBundle\Model;
3
4
use PHPUnit_Framework_TestCase;
5
use Werkspot\BingAdsApiBundle\Model\AccessToken;
6
7
class AccessTokenTest extends PHPUnit_Framework_TestCase
8
{
9
    const ACCESS_TOKEN = '2ec09aeccaf634d982eec793037e37fe';
10
    const REFRESH_TOKEN = '0c59f7e609b0cc467067e39d523116ce';
11
12
    public function testAccessTokenConstructor()
13
    {
14
        $accessToken = new AccessToken(self::ACCESS_TOKEN, self::REFRESH_TOKEN);
15
        $this->assertEquals(self::ACCESS_TOKEN, $accessToken->getAccessToken());
16
        $this->assertEquals(self::REFRESH_TOKEN, $accessToken->getRefreshToken());
17
    }
18
}
19