Code Duplication    Length = 9-9 lines in 2 locations

tests/Khepin/Tests/MongoFixtureTest.php 1 location

@@ 134-142 (lines=9) @@
131
        $this->assertEquals($driver->getCars()->count(), 3);
132
    }
133
134
    public function testServiceCalls()
135
    {
136
        $loader = new YamlLoader($this->kernel, array('SomeBundle'), 'DataFixtures');
137
        $loader->loadFixtures('service');
138
139
        $repo = $this->doctrine->getManager()->getRepository('Khepin\Fixture\Document\Car');
140
        $car = $repo->findOneBy(array('name' => 'toyota'));
141
        $this->assertTrue('toyota' === $car->getName());
142
    }
143
144
    public function testEmbedOne()
145
    {

tests/Khepin/Tests/YamlFixtureTest.php 1 location

@@ 168-176 (lines=9) @@
165
        $this->assertEquals($driver->getSecondCar()->getName(), 'Mercedes');
166
    }
167
168
    public function testServiceCalls()
169
    {
170
        $loader = new YamlLoader($this->kernel, array('SomeBundle'), 'DataFixtures');
171
        $loader->loadFixtures('service');
172
173
        $repo = $this->doctrine->getManager()->getRepository('Khepin\Fixture\Entity\Car');
174
        $car = $repo->findOneByName('toyota');
175
        $this->assertTrue('toyota' === $car->getName());
176
    }
177
178
    public function testArrayAssociation()
179
    {