| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class SplIntTest extends TestCase |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Unit test. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function test(): void |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Unit test. |
||
| 37 | * |
||
| 38 | * @return void |
||
| 39 | * |
||
| 40 | * @psalm-suppress UnsupportedReferenceUsage |
||
| 41 | */ |
||
| 42 | public function testMath(): void |
||
| 43 | { |
||
| 44 | $instance = new DuckInt(10); |
||
| 45 | |||
| 46 | $value = &$instance(); |
||
| 47 | $value++; |
||
| 48 | |||
| 49 | $this->assertSame(11, $value); |
||
| 50 | $this->assertSame(11, $instance()); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Unit test. |
||
| 55 | * |
||
| 56 | * @return void |
||
| 57 | */ |
||
| 58 | public function testSerialization(): void |
||
| 66 | } |
||
| 67 | } |
||
| 68 |