Code Duplication    Length = 9-10 lines in 3 locations

Tests/Router/RouteCollectionTest.php 3 locations

@@ 92-100 (lines=9) @@
89
    /**
90
     *
91
     */
92
    public function testKey()
93
    {
94
        $handler = 'my-handler';
95
        $collection = new RouteCollection();
96
        $collection->addRoute(['GET'], '/foo', $handler, ['global']);
97
        $collection->addRoute(['GET'], '/bar', $handler, ['global']);
98
        $expected = 0;
99
        $this->assertEquals($expected, $collection->key());
100
    }
101
102
    /**
103
     *
@@ 105-114 (lines=10) @@
102
    /**
103
     *
104
     */
105
    public function testNext()
106
    {
107
        $handler = 'my-handler';
108
        $collection = new RouteCollection();
109
        $collection->addRoute(['GET'], '/foo', $handler, ['global']);
110
        $collection->addRoute(['GET'], '/bar', $handler, ['global']);
111
        $expected = 1;
112
        $collection->next();
113
        $this->assertEquals($expected, $collection->key());
114
    }
115
116
    /**
117
     *
@@ 119-127 (lines=9) @@
116
    /**
117
     *
118
     */
119
    public function testCurrent()
120
    {
121
        $handler = 'my-handler';
122
        $collection = new RouteCollection();
123
        $collection->addRoute(['GET'], '/foo', $handler, ['global']);
124
        $collection->addRoute(['GET'], '/bar', $handler, ['global']);
125
        $expected = new Route('GET', '/foo', $handler, ['global']);
126
        $this->assertEquals($expected, $collection->current());
127
    }
128
129
    /**
130
     *