| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 3 |
| 1 | <?php |
||
| 9 | public function testTransformToTreeConstructor(): void |
||
| 10 | { |
||
| 11 | $testMatrix = Warehouse::createFromJson(getcwd() . "/resources/simpleWarehouse.json"); |
||
| 12 | |||
| 13 | $calculatedArray = $testMatrix->getPlaces(); |
||
| 14 | |||
| 15 | /** @var Place $nodeStart */ |
||
| 16 | $nodeStart = $calculatedArray[4]; |
||
| 17 | /** @var Place $nodeEnd */ |
||
| 18 | $nodeEnd = $calculatedArray[20]; |
||
| 19 | |||
| 20 | $this->assertEquals('04', $nodeStart->getName()); |
||
| 21 | $this->assertEquals('26', $nodeEnd->getName()); |
||
| 22 | $testMatrix->getPath($nodeStart, $nodeEnd); |
||
| 23 | } |
||
| 24 | } |