Completed
Branch v1 (ffe92e)
by Julián
02:44
created

AbstractReceiverTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 7 1
A testDefaults() 0 4 1
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\Receiver;
11
12
use Jgut\Tify\Receiver\AbstractReceiver;
13
14
/**
15
 * AbstractReceiver tests.
16
 */
17
class AbstractReceiverTest extends \PHPUnit_Framework_TestCase
18
{
19
    /**
20
     * @var \Jgut\Tify\Receiver\AbstractReceiver
21
     */
22
    protected $receiver;
23
24
    public function setUp()
25
    {
26
        $this->receiver = $this->getMockForAbstractClass(
0 ignored issues
show
Documentation Bug introduced by
It seems like $this->getMockForAbstrac...35278b86f26d44883593')) of type object<PHPUnit_Framework_MockObject_MockObject> is incompatible with the declared type object<Jgut\Tify\Receiver\AbstractReceiver> of property $receiver.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
27
            AbstractReceiver::class,
28
            ['9a4ecb987ef59c88b12035278b86f26d44883593']
29
        );
30
    }
31
32
    public function testDefaults()
33
    {
34
        self::assertNull($this->receiver->getToken());
35
    }
36
}
37