| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | class SplStringTest extends TestCase |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Unit test. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function test(): void |
||
| 27 | { |
||
| 28 | $instance = new DuckString(); |
||
| 29 | $this->assertSame('', $instance()); |
||
| 30 | |||
| 31 | $instance = new DuckString('hello world'); |
||
| 32 | $this->assertSame('hello world', $instance()); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Unit test. |
||
| 37 | * |
||
| 38 | * @return void |
||
| 39 | * |
||
| 40 | * @psalm-suppress UnsupportedReferenceUsage |
||
| 41 | */ |
||
| 42 | public function testConcatenate(): void |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Unit test. |
||
| 55 | * |
||
| 56 | * @return void |
||
| 57 | */ |
||
| 58 | public function testSerialization(): void |
||
| 68 |