Code Duplication    Length = 7-7 lines in 2 locations

tests/cli/ForEachCest.php 2 locations

@@ 45-51 (lines=7) @@
42
        $I->wantTo('set iterable in the __constructor');
43
        $I
44
            ->taskForEach($example['items'])
45
            ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) {
46
                $builder->addCode(function () use ($key, $value, &$actual) {
47
                    $actual[] = "$key = $value";
48
49
                    return 0;
50
                });
51
            })
52
            ->run();
53
54
        $I->assertEquals($example['expected'], $actual);
@@ 76-82 (lines=7) @@
73
                $I
74
                    ->taskForEach()
75
                    ->deferTaskConfiguration('setIterable', 'items')
76
                    ->withBuilder(function (CollectionBuilder $builder, $key, $value) use (&$actual) {
77
                        $builder->addCode(function () use ($key, $value, &$actual) {
78
                            $actual[] = "$key = $value";
79
80
                            return 0;
81
                        });
82
                    })
83
            )
84
            ->run();
85