/** * @dataProvider provideFailingMatch * @covers Fracture\Routing\Route::__construct * @covers Fracture\Routing\Route::getMatch * * @covers Fracture\Routing\Route::cleanMatches * @covers Fracture\Routing\Route::removeNoise * * @depends testPatternExpressionRetrieved */ public function testFailingMatches($expression, $url) { $pattern = $this->getMock('Fracture\\Routing\\Pattern', ['getExpression'], ['']); $pattern->expects($this->once())->method('getExpression')->will($this->returnValue($expression)); $route = new Route($pattern, 'not-important'); $this->assertFalse($route->getMatch($url)); }