Code Duplication    Length = 10-10 lines in 2 locations

bridge/doctrine-collections/tests/Functional/CollectionsVisitorTest.php 2 locations

@@ 138-147 (lines=10) @@
135
    /**
136
     * It should visit and composites.
137
     */
138
    public function testVisitCompositeAnd()
139
    {
140
        $expr = $this->visitor->dispatch(
141
            Query::composite('and', Query::comparison('eq', 'title', 42))
142
        );
143
144
        $this->assertInstanceOf(CompositeExpression::class, $expr);
145
        $this->assertEquals('AND', $expr->getType());
146
        $this->assertInstanceOf(Comparison::class, $expr->getExpressionList()[0]);
147
    }
148
149
    /**
150
     * It should visit or composites.
@@ 152-161 (lines=10) @@
149
    /**
150
     * It should visit or composites.
151
     */
152
    public function testVisitCompositeOr()
153
    {
154
        $expr = $this->visitor->dispatch(
155
            Query::composite('or', Query::comparison('eq', 'title', 42))
156
        );
157
158
        $this->assertInstanceOf(CompositeExpression::class, $expr);
159
        $this->assertEquals('OR', $expr->getType());
160
        $this->assertInstanceOf(Comparison::class, $expr->getExpressionList()[0]);
161
    }
162
}
163