Code Duplication    Length = 11-11 lines in 2 locations

Tests/Factory/RelationFactoryTest.php 2 locations

@@ 22-32 (lines=11) @@
19
    /**
20
     *
21
     */
22
    public function testFactoryInterface()
23
    {
24
        $factory = new RelationFactory(
25
            $this->oneToOneRelationClass,
26
            $this->manyToOneRelationClass,
27
            $this->oneToManyRelationClass,
28
            $this->manyToManyRelationClass
29
        );
30
31
        $this->assertInstanceOf('Ajir\RabbitMqSqlBundle\Factory\RelationFactoryInterface', $factory);
32
    }
33
34
    /**
35
     *
@@ 192-202 (lines=11) @@
189
    /**
190
     *
191
     */
192
    public function testCreateInvalidRelationParameter()
193
    {
194
        $this->setExpectedException('InvalidArgumentException');
195
        $factory = new RelationFactory(
196
            $this->oneToOneRelationClass,
197
            $this->manyToOneRelationClass,
198
            $this->oneToManyRelationClass,
199
            $this->manyToManyRelationClass
200
        );
201
        $factory->create('invalid', array());
202
    }
203
}
204