Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php namespace Unit\Chekote\NounStore\Assert; |
||
9 | abstract class AssertTestCase extends TestCase |
||
10 | { |
||
11 | /** @var AssertPhake */ |
||
12 | protected $assert; |
||
13 | |||
14 | /** @var StorePhake */ |
||
15 | protected $store; |
||
16 | |||
17 | /** @var KeyPhake */ |
||
18 | protected $key; |
||
19 | |||
20 | /** |
||
21 | * Sets up the environment before each test. |
||
22 | */ |
||
23 | public function setUp(): void |
||
24 | { |
||
25 | $this->key = Phake::strictMock(Key::class); |
||
26 | $this->store = Phake::strictMockWithConstructor(Store::class, $this->key); |
||
27 | $this->assert = Phake::strictMockWithConstructor(Assert::class, $this->store, $this->key); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Tears down the environment after each test. |
||
32 | */ |
||
33 | public function tearDown(): void |
||
38 | } |
||
39 | } |
||
40 |