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

StoreTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A tearDown() 0 3 1
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