Code Duplication    Length = 8-9 lines in 2 locations

Tests/Router/RouteCollectionTest.php 2 locations

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