Passed
Branch scrutinizer_new_php_analysis (b739aa)
by Donald
02:21
created

KeyTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 19
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A tearDown() 0 3 1
1
<?php namespace Chekote\NounStore\Key;
2
3
use Chekote\NounStore\Key;
4
use Chekote\Phake\Phake;
5
use Phake_IMock;
6
use PHPUnit\Framework\TestCase;
7
8
abstract class KeyTest extends TestCase
9
{
10
    /** @var Key|Phake_IMock */
11
    protected $key;
12
13
    /**
14
     * Sets up the environment before each test.
15
     */
16
    public function setUp()
17
    {
18
        $this->key = Phake::strictMock(Key::class);
19
    }
20
21
    /**
22
     * Tears down the environment after each test.
23
     */
24
    public function tearDown()
25
    {
26
        $this->key = null;
27
    }
28
}
29