| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 7 | class HelperTest extends TestCase | ||
| 8 | { | ||
| 9 | public function testDumpClosure(): void | ||
| 10 |     { | ||
| 11 | $params = ['test' => 42]; | ||
| 12 |         $closure = static function () use ($params) { | ||
| 13 | return $params['test']; | ||
| 14 | }; | ||
| 15 | |||
| 16 | $closureDump = Helper::dumpClosure($closure); | ||
| 17 | |||
| 18 |         $this->assertSameWithoutLE("static function () use (\$params) {\n            return \$params['test'];\n        }", $closureDump); | ||
| 19 | } | ||
| 20 | |||
| 21 | private function assertSameWithoutLE($expected, $actual, string $message = ''): void | ||
| 26 | } | ||
| 27 | } | ||
| 28 |