Code Duplication    Length = 19-19 lines in 2 locations

tests/Crud/QueryBuilder/Sql/UpdateTokenCollectionUnitTest.php 1 location

@@ 36-54 (lines=19) @@
33
     *
34
     * @small
35
     */
36
    public function getBindingsList()
37
    {
38
        $dataSet = [
39
            'id' => 1,
40
            'dummy_column_1' => 'some text',
41
            'dummy_column_2' => null,
42
        ];
43
44
        $updateTokenCollection = new UpdateTokenCollection($dataSet);
45
46
        self::assertEquals(
47
            [
48
                ':u0' => 1,
49
                ':u1' => 'some text',
50
                ':u2' => null,
51
            ],
52
            $updateTokenCollection->getBindingsList()
53
        );
54
    }
55
}
56

tests/Crud/QueryBuilder/Sql/WhereTokenCollectionUnitTest.php 1 location

@@ 121-139 (lines=19) @@
118
     *
119
     * @small
120
     */
121
    public function getBindingsList_WithOneLevel()
122
    {
123
        $whereToken = [
124
            'id' => 1,
125
            'dummy_column_1' => 'some text',
126
            'dummy_column_2' => null,
127
        ];
128
129
        $whereTokenCollection = new WhereTokenCollection($whereToken);
130
131
        self::assertEquals(
132
            [
133
                ':w0' => 1,
134
                ':w1' => 'some text',
135
                ':w2' => null,
136
            ],
137
            $whereTokenCollection->getBindingsList()
138
        );
139
    }
140
141
    /**
142
     * @test