symfony/symfony — pull request #6905 by gimler (2013-01-29 08:27:56+00:00)
Title: [Routing] remove route query param when it is the same as default

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | maybe not shure i think this is a bug
| Deprecations? | no
| Tests pass? | yes
| License | MIT

i think the original testcase for query params is broken see:
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php#L294

the `generate` method from the `UrlGenerator` removes parameter that has the same value as the default see:
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php#L344

but this is not the case for query parameters