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