Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | final class NotifyResultTest extends TestCase |
||
12 | { |
||
13 | public function test_condition_names_group_by_symbol(): void |
||
14 | { |
||
15 | $notifyResult = (new NotifyResult()) |
||
16 | ->add($this->createCompany('SYMBOL_1'), ['condition 1', 'condition 2']) |
||
17 | ->add($this->createCompany('SYMBOL_2'), ['condition 3']); |
||
18 | |||
19 | self::assertEquals( |
||
20 | [ |
||
21 | 'SYMBOL_1' => ['condition 1', 'condition 2'], |
||
22 | 'SYMBOL_2' => ['condition 3'], |
||
23 | ], |
||
24 | $notifyResult->conditionNamesGroupBySymbol(), |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | private function createCompany(string $symbol): Quote |
||
32 | } |
||
33 | } |
||
34 |