Code Duplication    Length = 7-9 lines in 3 locations

src/Oro/Bundle/MigrationBundle/Tests/Unit/Tools/DbIdentifierNameGeneratorTest.php 1 location

@@ 188-196 (lines=9) @@
185
        ];
186
    }
187
188
    public function emptyTableNameProvider()
189
    {
190
        return [
191
            [null],
192
            [''],
193
            [[]],
194
            [['']],
195
        ];
196
    }
197
}
198

src/Oro/Bundle/WorkflowBundle/Tests/Unit/Model/Action/CreateRelatedEntityTest.php 1 location

@@ 65-72 (lines=8) @@
62
    /**
63
     * @return array
64
     */
65
    public function optionsDataProvider()
66
    {
67
        return array(
68
            array(array()),
69
            array(array('data' => null)),
70
            array(array('data' => array('test' => 'data'))),
71
        );
72
    }
73
74
    /**
75
     * @expectedException \InvalidArgumentException

src/Oro/Bundle/WorkflowBundle/Tests/Unit/Model/WorkflowTest.php 1 location

@@ 473-479 (lines=7) @@
470
        $this->assertEquals(array_merge($data, array('entity' => $entity)), $item->getData()->getValues());
471
    }
472
473
    public function startDataProvider()
474
    {
475
        return array(
476
            array(array(), null),
477
            array(array('test' => 'test'), 'test')
478
        );
479
    }
480
481
    protected function getStepMock($name)
482
    {