Code Duplication    Length = 10-10 lines in 2 locations

Tests/Transformer/ModelToElasticaAutoTransformerTest.php 1 location

@@ 197-206 (lines=10) @@
194
        $this->assertSame('someName', $document->get('realName'));
195
    }
196
197
    public function testThatCanTransformObject()
198
    {
199
        $transformer = $this->getTransformer();
200
        $document = $transformer->transform(new POPO(), ['name' => []]);
201
        $data = $document->getData();
202
203
        $this->assertInstanceOf('Elastica\Document', $document);
204
        $this->assertSame(123, $document->getId());
205
        $this->assertSame('someName', $data['name']);
206
    }
207
208
    public function testThatCanTransformObjectWithCorrectTypes()
209
    {

Tests/Transformer/ModelToElasticaIdentifierTransformerTest.php 1 location

@@ 46-55 (lines=10) @@
43
        $this->assertCount(0, $data);
44
    }
45
46
    public function testGetDocumentWithIdentifierOnlyWithFields()
47
    {
48
        $transformer = $this->getTransformer();
49
        $document = $transformer->transform(new POPO(), ['name' => []]);
50
        $data = $document->getData();
51
52
        $this->assertInstanceOf('Elastica\Document', $document);
53
        $this->assertSame(123, $document->getId());
54
        $this->assertCount(0, $data);
55
    }
56
57
    /**
58
     * @return ModelToElasticaIdentifierTransformer