Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class KDTreeTest extends TestCase |
||
12 | { |
||
13 | public function testEmptyConstruction(): void |
||
14 | { |
||
15 | $dimensions = 2; |
||
16 | $kdTree = new KDTree($dimensions); |
||
17 | |||
18 | $this->assertEquals(0, $kdTree->size()); |
||
19 | $this->assertTrue($kdTree->isEmpty()); |
||
20 | $this->assertEquals($dimensions, $kdTree->getDimensions()); |
||
21 | $this->assertNull($kdTree->getRoot()); |
||
22 | } |
||
23 | |||
24 | public function testInvalidDimensionsCount() |
||
25 | { |
||
26 | $this->expectException(InvalidDimensionsCount::class); |
||
27 | new KDTree(0); |
||
28 | } |
||
29 | |||
30 | public function testPut(): void |
||
43 | } |
||
44 | |||
45 | public function testDelete(): void |
||
53 | } |
||
54 | } |
||
55 |