Code Duplication    Length = 8-9 lines in 2 locations

Tests/Router/RouteCollectionTest.php 2 locations

@@ 139-146 (lines=8) @@
136
    /**
137
     *
138
     */
139
    public function testValidTrue()
140
    {
141
        $handler = 'my-handler';
142
        $collection = new RouteCollection();
143
        $collection->addRoute(['GET'], '/foo', $handler, ['global']);
144
        $expected = true;
145
        $this->assertEquals($expected, $collection->valid());
146
    }
147
148
    /**
149
     *
@@ 151-159 (lines=9) @@
148
    /**
149
     *
150
     */
151
    public function testValidFalse()
152
    {
153
        $expected = false;
154
        $handler = 'my-handler';
155
        $collection = new RouteCollection();
156
        $collection->addRoute(['GET'], '/foo', $handler, ['global']);
157
        $collection->next();
158
        $this->assertEquals($expected, $collection->valid());
159
    }
160
161
162
    /**