Code Duplication    Length = 15-15 lines in 2 locations

tests/Promise/ProxyPrinterTest.php 2 locations

@@ 261-275 (lines=15) @@
258
        $this->assertNotNull($constructor);
259
    }
260
261
    public function testNotContainParentConstructor(): void
262
    {
263
        $class = Fixtures\EntityWithoutConstructor::class;
264
        $as = 'EntityProxy' . __LINE__;
265
266
        $declaration = new Declaration(new \ReflectionClass($class), $as);
267
        $output = $this->make($declaration);
268
        $output = ltrim($output, '<?php');
269
270
        $this->assertFalse(class_exists($declaration->class->getFullName()));
271
272
        eval($output);
273
274
        $this->assertStringNotContainsString('parent::__construct();', $output);
275
    }
276
277
    public function testContainParentConstructor(): void
278
    {
@@ 277-291 (lines=15) @@
274
        $this->assertStringNotContainsString('parent::__construct();', $output);
275
    }
276
277
    public function testContainParentConstructor(): void
278
    {
279
        $class = Fixtures\EntityWithConstructor::class;
280
        $as = 'EntityProxy' . __LINE__;
281
282
        $declaration = new Declaration(new \ReflectionClass($class), $as);
283
        $output = $this->make($declaration);
284
        $output = ltrim($output, '<?php');
285
286
        $this->assertFalse(class_exists($declaration->class->getFullName()));
287
288
        eval($output);
289
290
        $this->assertStringContainsString('parent::__construct();', $output);
291
    }
292
293
    public function testPromiseMethods(): void
294
    {