Passed
Branch scrutinizer_new_php_analysis (b739aa)
by Donald
01:58
created

KeyTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 0
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