Code Duplication    Length = 33-35 lines in 2 locations

tests/AppBundle/Sync/Storage/LocalTest.php 1 location

@@ 23-57 (lines=35) @@
20
     */
21
    protected $root;
22
23
    public function setUp()
24
    {
25
        $tree = [
26
            'source' => [
27
                'ADUU' => [
28
                    'stream' => [
29
                        'ADUU00313.mov' => 'test stream content',
30
                    ],
31
                    'source' => [
32
                        'ADUU00213.mov' => 'test source content',
33
                    ],
34
                ],
35
                'BCUU' => [
36
                    'stream' => [
37
                        'BCUU00113.mov' => 'test stream content',
38
                    ],
39
                    'source' => [
40
                        'BCUU00313.mov' => 'test source content',
41
                    ],
42
                ]
43
            ],
44
            'dest' => [
45
                'ADUU' => [
46
                    'stream' => [
47
                        'ADUU00313.mov' => 'test stream content 2',
48
                    ],
49
                    'source' => [
50
                        'ADUU00213.mov' => 'test source content 2',
51
                    ],
52
                ],
53
            ]
54
        ];
55
        // Init virtual FS
56
        $this->root = vfsStream::setup('root', null, $tree);
57
    }
58
59
    public function testPut()
60
    {

tests/AppBundle/Sync/SyncTest.php 1 location

@@ 25-57 (lines=33) @@
22
     */
23
    protected $root;
24
25
    public function setUp()
26
    {
27
        $tree = [
28
            'source' => [
29
                'TEST' => [
30
                    'stream' => [
31
                        'TEST00213.mov' => 'test stream content',
32
                        'TEST00313.mov' => 'test stream content',
33
                    ],
34
                    'source' => [
35
                        'TEST00213.mov' => 'test source content',
36
                    ],
37
                ],
38
                'ZZZZ' => [
39
                    'stream' => [
40
                        'ZZZZ00113.mov' => 'test stream content',
41
                    ],
42
                    'source' => [
43
                        'ZZZZ00313.mov' => 'test source content',
44
                    ],
45
                ]
46
            ],
47
            'dest' => [
48
                'TEST' => [
49
                    'TEST00213.mov' => 'test stream content',
50
                    'TEST00313.mov' => 'test stream content 2',
51
                    'TEST00413.mov' => 'test stream content 2',
52
                ],
53
            ]
54
        ];
55
        // Init virtual FS
56
        $this->root = vfsStream::setup('root', null, $tree);
57
    }
58
59
    public function testDirSync()
60
    {