Code Duplication    Length = 12-13 lines in 2 locations

tests/ContainerHydratorTest.php 2 locations

@@ 61-72 (lines=12) @@
58
        $this->obj = new ContainerHydrator();
59
    }
60
61
    public function testPopulateWithEmpty()
62
    {
63
        $loader = $this->obj;
64
65
        $config = [];
66
67
        $container = $this->getContainerMock();
68
69
        $container->expects($this->never())->method('add');
70
71
        $loader->populate($container, $config);
72
    }
73
74
    public function testPopulateWithTraversable()
75
    {
@@ 74-86 (lines=13) @@
71
        $loader->populate($container, $config);
72
    }
73
74
    public function testPopulateWithTraversable()
75
    {
76
        $loader = $this->obj;
77
78
        /** @var \Iterator | \PHPUnit_Framework_MockObject_MockObject $config */
79
        $config = $this->getMockBuilder('\Iterator')->getMockForAbstractClass();
80
81
        $container = $this->getContainerMock();
82
83
        $container->expects($this->never())->method('add');
84
85
        $loader->populate($container, $config);
86
    }
87
88
    /**
89
     * @expectedException \InvalidArgumentException