Code Duplication    Length = 8-10 lines in 2 locations

src/Test/AbstractBindingTest.php 2 locations

@@ 198-207 (lines=10) @@
195
     * @expectedException \Puli\Discovery\Api\Type\NoSuchParameterException
196
     * @expectedExceptionMessage foo
197
     */
198
    public function testInitializeFailsIfUnknownParameter()
199
    {
200
        $binding = $this->createBinding(Foo::clazz, array(
201
            'foo' => 'bar',
202
        ));
203
204
        $type = new BindingType(Foo::clazz, get_class($binding));
205
206
        $binding->initialize($type);
207
    }
208
209
    /**
210
     * @expectedException \InvalidArgumentException
@@ 225-232 (lines=8) @@
222
    /**
223
     * @expectedException \Puli\Discovery\Api\Type\BindingNotAcceptedException
224
     */
225
    public function testInitializeFailsIfBindingNotAccepted()
226
    {
227
        $binding = $this->createBinding(Foo::clazz);
228
229
        $type = new BindingType(Foo::clazz, __CLASS__);
230
231
        $binding->initialize($type);
232
    }
233
234
    /**
235
     * @expectedException \Puli\Discovery\Api\Type\NoSuchParameterException