| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function testSearch(): void |
||
| 16 | { |
||
| 17 | $partitionSearch = new PartitionSearch($this->prepareKdTree()); |
||
| 18 | $pointsList = new PointsList(2); |
||
| 19 | $pointsList->addPoint(new Point(80, 80)) |
||
| 20 | ->addPoint(new Point(99,99)) |
||
| 21 | ->addPoint(new Point(70, 70)) |
||
| 22 | ->addPoint(new Point(60, 70)); |
||
| 23 | $partition = new Partition($pointsList); |
||
| 24 | |||
| 25 | $points = $partitionSearch->find($partition); |
||
| 26 | $this->assertCount(1, $points); |
||
| 27 | $this->assertEquals([91, 91], $points->current()->getAxises()); |
||
| 28 | } |
||
| 45 |