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