Passed
Push — master ( 639b92...a2ec98 )
by Donald
13:52
created

StoreTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php namespace Chekote\NounStore\Store;
2
3
use Chekote\NounStore\Store;
4
use PHPUnit\Framework\TestCase;
5
6
/**
7
 * @covers Store
8
 */
9
abstract class StoreTest extends TestCase
10
{
11
    /** @var Store */
12
    protected $store;
13
14
    const KEY = 'Some Key';
15
    const FIRST_VALUE = 'The First Value';
16
    const SECOND_VALUE = 'The Second Value';
17
18
    /**
19
     * Sets up the environment before each test.
20
     */
21
    public function setUp()
22
    {
23
        $this->store = new Store();
24
        $this->store->set(self::KEY, self::FIRST_VALUE);
25
        $this->store->set(self::KEY, self::SECOND_VALUE);
26
    }
27
28
    /**
29
     * Tears down the environment after each test.
30
     */
31
    public function tearDown()
32
    {
33
        $this->store = null;
34
    }
35
}
36