Code Duplication    Length = 16-18 lines in 2 locations

tests/ContainerHydratorTest.php 2 locations

@@ 119-134 (lines=16) @@
116
        $loader->populate($container, $config);
117
    }
118
119
    public function testAddingConcrete()
120
    {
121
        $loader = $this->obj;
122
123
        $config = [
124
            'TestInterface' => null,
125
        ];
126
127
        $container = $this->getContainerMock();
128
129
        $container->expects($this->once())
130
                  ->method('add')
131
                  ->with('TestInterface', null, false);
132
133
        $loader->populate($container, $config);
134
    }
135
136
    public function testSharingConcrete()
137
    {
@@ 136-153 (lines=18) @@
133
        $loader->populate($container, $config);
134
    }
135
136
    public function testSharingConcrete()
137
    {
138
        $loader = $this->obj;
139
140
        $config = [
141
            'TestInterface' => [
142
                'share' => true,
143
            ],
144
        ];
145
146
        $container = $this->getContainerMock();
147
148
        $container->expects($this->once())
149
                  ->method('add')
150
                  ->with('TestInterface', null, true);
151
152
        $loader->populate($container, $config);
153
    }
154
155
    public function testAddingAlias()
156
    {