Code Duplication    Length = 8-10 lines in 2 locations

Tests/Transformer/ModelToElasticaAutoTransformerTest.php 2 locations

@@ 280-287 (lines=8) @@
277
        $transformer->transform(new POPO(), array('desc' => array()));
278
    }
279
280
    public function testFileAddedForAttachmentMapping()
281
    {
282
        $transformer = $this->getTransformer();
283
        $document    = $transformer->transform(new POPO(), array('file' => array('type' => 'attachment')));
284
        $data        = $document->getData();
285
286
        $this->assertEquals(base64_encode(file_get_contents(__DIR__.'/../fixtures/attachment.odt')), $data['file']);
287
    }
288
289
    public function testFileContentsAddedForAttachmentMapping()
290
    {
@@ 289-298 (lines=10) @@
286
        $this->assertEquals(base64_encode(file_get_contents(__DIR__.'/../fixtures/attachment.odt')), $data['file']);
287
    }
288
289
    public function testFileContentsAddedForAttachmentMapping()
290
    {
291
        $transformer = $this->getTransformer();
292
        $document    = $transformer->transform(new POPO(), array('fileContents' => array('type' => 'attachment')));
293
        $data        = $document->getData();
294
295
        $this->assertEquals(
296
            base64_encode(file_get_contents(__DIR__.'/../fixtures/attachment.odt')), $data['fileContents']
297
        );
298
    }
299
300
    public function testNestedMapping()
301
    {