11<?php
2+
23declare (strict_types=1 );
34
45namespace Nejcc \PhpDatatypes \Tests ;
78use Nejcc \PhpDatatypes \Exceptions \InvalidFloatException ;
89use PHPUnit \Framework \TestCase ;
910
10- class FloatArrayTest extends TestCase
11+ final class FloatArrayTest extends TestCase
1112{
1213 /**
1314 * Test creating a valid FloatArray instance.
15+ *
1416 * @throws InvalidFloatException
1517 */
1618 public function testCreateValidFloatArray (): void
@@ -32,6 +34,7 @@ public function testCreateInvalidFloatArray(): void
3234
3335 /**
3436 * Test adding floats to a FloatArray.
37+ *
3538 * @throws InvalidFloatException
3639 */
3740 public function testAddFloats (): void
@@ -44,6 +47,7 @@ public function testAddFloats(): void
4447
4548 /**
4649 * Test removing floats from a FloatArray.
50+ *
4751 * @throws InvalidFloatException
4852 */
4953 public function testRemoveFloats (): void
@@ -56,6 +60,7 @@ public function testRemoveFloats(): void
5660
5761 /**
5862 * Test calculating the sum of floats.
63+ *
5964 * @throws InvalidFloatException
6065 */
6166 public function testSumOfFloats (): void
@@ -66,6 +71,7 @@ public function testSumOfFloats(): void
6671
6772 /**
6873 * Test calculating the average of floats.
74+ *
6975 * @throws InvalidFloatException
7076 */
7177 public function testAverageOfFloats (): void
@@ -88,6 +94,7 @@ public function testAverageOfEmptyFloatArray(): void
8894
8995 /**
9096 * Test getting the count of floats in a FloatArray.
97+ *
9198 * @throws InvalidFloatException
9299 */
93100 public function testGetFloatCount (): void
@@ -98,6 +105,7 @@ public function testGetFloatCount(): void
98105
99106 /**
100107 * Test ArrayAccess implementation for accessing a float at a specific index.
108+ *
101109 * @throws InvalidFloatException
102110 */
103111 public function testArrayAccessGet (): void
@@ -133,6 +141,7 @@ public function testArrayAccessUnsetThrowsException(): void
133141
134142 /**
135143 * Test iterating over FloatArray with IteratorAggregate.
144+ *
136145 * @throws InvalidFloatException
137146 */
138147 public function testIterationOverFloatArray (): void
@@ -149,6 +158,7 @@ public function testIterationOverFloatArray(): void
149158
150159 /**
151160 * Test creating an empty FloatArray.
161+ *
152162 * @throws InvalidFloatException
153163 */
154164 public function testEmptyFloatArray (): void
0 commit comments