Skip to content

Commit f5c99d2

Browse files
committed
merged branch Tobion/eager (PR symfony#4562)
Commits ------- 49e9957 added test to ensure matching is eager Discussion ---------- [Routing] added test to ensure matching is eager This just adds a passing test that wasn't covered yet, so we don't break this scenario in the future. --------------------------------------------------------------------------- by travisbot at 2012-06-13T01:04:09Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1605738) (merged 49e9957 into 37550d2).
2 parents 47cd378 + 49e9957 commit f5c99d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ public function testMatchRegression()
214214
}
215215
}
216216

217+
public function testMatchingIsEager()
218+
{
219+
$coll = new RouteCollection();
220+
$coll->add('test', new Route('/{foo}-{bar}-', array(), array('foo' => '.+', 'bar' => '.+')));
221+
222+
$matcher = new UrlMatcher($coll, new RequestContext());
223+
$this->assertEquals(array('foo' => 'text1-text2-text3', 'bar' => 'text4', '_route' => 'test'), $matcher->match('/text1-text2-text3-text4-'));
224+
}
225+
217226
/**
218227
* @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException
219228
*/

0 commit comments

Comments
 (0)