/** * @dataProvider dataProviderForMatch */ public function testMatch($method, $pattern, $givenMethod, $givenUri, $expectedReturn, $expectedArguments = array()) { $route = new Route($method, $pattern, function () { }); $this->assertEquals($expectedReturn, $route->match($givenMethod, $givenUri)); $this->assertCount(count($expectedArguments), $route->getArguments()); $this->assertEquals($expectedArguments, $route->getArguments()); }