4 * This file is part of the Symfony CMF package.
6 * (c) 2011-2015 Symfony CMF
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Cmf\Component\Routing\Tests\Routing;
14 use Symfony\Component\Routing\Route as SymfonyRoute;
15 use Symfony\Cmf\Component\Routing\RouteObjectInterface;
17 class RouteMock extends SymfonyRoute implements RouteObjectInterface
21 public function setLocale($locale)
23 $this->locale = $locale;
26 public function getContent()
31 public function getDefaults()
34 if (!is_null($this->locale)) {
35 $defaults['_locale'] = $this->locale;
41 public function getRequirement($key)
43 if (!$key == '_locale') {
44 throw new \Exception();
50 public function getRouteKey()