Code Duplication    Length = 12-13 lines in 2 locations

tests/Functional/Visitor/Php/Symfony/FormEmptyValueTest.php 1 location

@@ 21-33 (lines=13) @@
18
/**
19
 * @author Tobias Nyholm <[email protected]>
20
 */
21
class FormEmptyValueTest extends BasePHPVisitorTest
22
{
23
    public function testExtract()
24
    {
25
        $collection = $this->getSourceLocations(new FormTypeEmptyValue(), Resources\Php\Symfony\EmptyValueType::class);
26
27
        $this->assertCount(3, $collection);
28
29
        $this->assertEquals('gender.empty_value', $collection->get(0)->getMessage());
30
        $this->assertEquals('birthday.form.year', $collection->get(1)->getMessage());
31
        $this->assertEquals('birthday.form.month', $collection->get(2)->getMessage());
32
    }
33
}
34

tests/Functional/Visitor/Php/Symfony/FormTypeLabelImplicitTest.php 1 location

@@ 21-32 (lines=12) @@
18
/**
19
 * @author Rein Baarsma <[email protected]>
20
 */
21
class FormTypeLabelImplicitTest extends BasePHPVisitorTest
22
{
23
    public function testExtract()
24
    {
25
        $collection = $this->getSourceLocations(new FormTypeLabelImplicit(), Resources\Php\Symfony\ImplicitLabelType::class);
26
27
        $this->assertCount(3, $collection, print_r($collection, true));
28
        $this->assertEquals('find1', $collection->get(0)->getMessage());
29
        $this->assertEquals('bigger_find2', $collection->get(1)->getMessage());
30
        $this->assertEquals('camelFind3', $collection->get(2)->getMessage());
31
    }
32
}
33