GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

RateFactoryTest::testReturnUpsRateInstance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace Octante\UpsAPIBundle\Tests\Unit\Services;
4
5
/*
6
 * This file is part of the UrbanGarden package.
7
 *
8
 * (c) Issel Guberna <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
use Octante\UpsAPIBundle\Services\RateFactory;
15
16
class RateFactoryTest extends \PHPUnit_Framework_TestCase
17
{
18
    /**
19
     * when: createIsCalled
20
     * should: returnAnUpsRateInstance.
21
     */
22
    public function testReturnUpsRateInstance()
23
    {
24
        $loggerMock = $this->getMock('Psr\Log\LoggerInterface');
25
        $upsRateInstance = RateFactory::create(
26
            'accessKey',
27
            'userId',
28
            'password',
29
            $loggerMock
30
        );
31
        $this->assertInstanceOf('Octante\UpsAPIBundle\Library\RateWrapper', $upsRateInstance);
32
    }
33
34
    /**
35
     * when: createIsCalled
36
     * with: useIntegration
37
     * should: returnAnUpsRateInstanceWithUseIntegrationActivated.
38
     */
39
    public function testReturnUpsRateInstanceUsingIntegrationParameter()
40
    {
41
        $loggerMock = $this->getMock('Psr\Log\LoggerInterface');
42
        $upsRateInstance = RateFactory::create(
43
            'accessKey',
44
            'userId',
45
            'password',
46
            $loggerMock,
47
            true
48
        );
49
        $this->assertInstanceOf('Octante\UpsAPIBundle\Library\RateWrapper', $upsRateInstance);
50
    }
51
}
52