Code Duplication    Length = 8-8 lines in 2 locations

tests/HydratorContainerTest.php 1 location

@@ 33-40 (lines=8) @@
30
        $this->assertSame('value', call_user_func($handlers->getHandler(\DateTime::class)));
31
    }
32
33
    public function testInterface()
34
    {
35
        $hydrators = new FallbackHydratorContainer();
36
        $hydrators->add(TypeInterface::class, function() { return 'type'; });
37
38
        $this->assertSame('type', call_user_func($hydrators->getHandler(TypeA::class)));
39
        $this->assertSame('type', call_user_func($hydrators->getHandler(TypeB::class)));
40
    }
41
42
    public function testInheritance()
43
    {

tests/NormalizerContainerTest.php 1 location

@@ 33-40 (lines=8) @@
30
        $this->assertSame('value', call_user_func($normalizers->getHandler(\DateTime::class)));
31
    }
32
33
    public function testInterface()
34
    {
35
        $normalizers = new FallbackNormalizerContainer();
36
        $normalizers->add(TypeInterface::class, function() { return 'type'; });
37
38
        $this->assertSame('type', call_user_func($normalizers->getHandler(TypeA::class)));
39
        $this->assertSame('type', call_user_func($normalizers->getHandler(TypeB::class)));
40
    }
41
42
    public function testInheritance()
43
    {