Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

merged branch Tobion/eager (PR #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).
  • Loading branch information...
commit f5c99d2421c4b508ee7f13ffaa0b9bd2e838822d 2 parents 47cd378 + 49e9957
Fabien Potencier fabpot authored
9 src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php
@@ -214,6 +214,15 @@ public function testMatchRegression()
214 214 }
215 215 }
216 216
  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 +
217 226 /**
218 227 * @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException
219 228 */

0 comments on commit f5c99d2

Please sign in to comment.
Something went wrong with that request. Please try again.