public function testPartialMatch() { $route = new Route\Route(':lang/:temp', array('lang' => 'pl'), array('temp' => '\\d+')); $values = $route->match('en/tmp/ctrl/action/id/1', true); $this->assertFalse($values); $route = new Route\Route(':lang/:temp', array('lang' => 'pl')); $values = $route->match('en/tmp/ctrl/action/id/1', true); $this->assertInternalType('array', $values); $this->assertEquals('en', $values['lang']); $this->assertEquals('tmp', $values['temp']); $this->assertEquals('en/tmp', $route->getMatchedPath()); }