Passed
Push — phpstorm_php ( 759894...3a8c25 )
by Donald
03:03
created

KeyTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php namespace Chekote\NounStore\Key;
2
3
use Chekote\NounStore\Key;
4
use Chekote\NounStore\TestCase;
5
use Chekote\Phake\Phake;
6
use Phake_IMock;
7
8
abstract class KeyTest extends TestCase
9
{
10
    const INVALID_KEY = "It's invalid because of the apostrophe";
11
12
    /** @var Key|Phake_IMock */
13
    protected $key;
14
15
    /**
16
     * Sets up the environment before each test.
17
     */
18
    public function setUp()
19
    {
20
        $this->key = Phake::strictMock(Key::class);
21
    }
22
23
    /**
24
     * Tears down the environment after each test.
25
     */
26
    public function tearDown()
27
    {
28
        $this->key = null;
29
30
        Phake::verifyExpectations();
31
    }
32
}
33