Passed
Push — php8 ( bb7e6a...5527ec )
by Donald
01:50
created

KeyTestCase::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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