|
4 | 4 | use DCarbone\PHPConsulAPI\Coordinate\Coordinate; |
5 | 5 | use DCarbone\PHPConsulAPI\Coordinate\CoordinateConfig; |
6 | 6 | use function DCarbone\PHPConsulAPI\Coordinate\diff; |
| 7 | +use DCarbone\PHPConsulAPI\Coordinate\DimensionalityConflictException; |
| 8 | + |
7 | 9 | use function DCarbone\PHPConsulAPI\Coordinate\magnitude; |
8 | 10 | use function DCarbone\PHPConsulAPI\Coordinate\unitVectorAt; |
9 | 11 | use DCarbone\PHPConsulAPITests\Usage\AbstractUsageTests; |
@@ -73,9 +75,11 @@ public function testCanConstructCoordinateWithDefaultConfig(): void |
73 | 75 |
|
74 | 76 | public function testCanConstructCoordinateWithArrayOfValues(): void |
75 | 77 | { |
76 | | - $coord = new Coordinate([ |
77 | | - 'Vec' => [0.1, 0.2], |
78 | | - ]); |
| 78 | + $coord = new Coordinate( |
| 79 | + [ |
| 80 | + 'Vec' => [0.1, 0.2], |
| 81 | + ] |
| 82 | + ); |
79 | 83 | static::assertInstanceOf(Coordinate::class, $coord); |
80 | 84 | static::assertIsArray($coord->Vec); |
81 | 85 | static::assertCount(2, $coord->Vec); |
@@ -140,7 +144,7 @@ public function testIsCompatibleWith(): void |
140 | 144 |
|
141 | 145 | public function testApplyForce(): void |
142 | 146 | { |
143 | | - $this->expectException(\DCarbone\PHPConsulAPI\Coordinate\DimensionalityConflictException::class); |
| 147 | + $this->expectException(DimensionalityConflictException::class); |
144 | 148 |
|
145 | 149 | $config = CoordinateConfig::Default(); |
146 | 150 | $config->Dimensionality = 3; |
@@ -178,7 +182,7 @@ public function testApplyForce(): void |
178 | 182 |
|
179 | 183 | public function testDistanceTo(): void |
180 | 184 | { |
181 | | - $this->expectException(\DCarbone\PHPConsulAPI\Coordinate\DimensionalityConflictException::class); |
| 185 | + $this->expectException(DimensionalityConflictException::class); |
182 | 186 |
|
183 | 187 | $config = CoordinateConfig::Default(); |
184 | 188 | $config->Dimensionality = 3; |
|
0 commit comments