| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function testFindNearest(array $point, array $nearest, float $distance): void |
||
| 24 | { |
||
| 25 | $nearestSearch = new NearestSearch($this->prepareKdTree()); |
||
| 26 | |||
| 27 | $point = $nearestSearch->nearest(new Point(...$point)); |
||
| 28 | $this->assertEquals($nearest, $point->getAxises()); |
||
| 29 | $this->assertEquals($distance, $nearestSearch->getNearestDistance()); |
||
| 30 | } |
||
| 63 |