public function UrlMatcherTest::setUp

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/NestedMatcher/UrlMatcherTest.php, line 25

Class

UrlMatcherTest

Namespace

Symfony\Cmf\Component\Routing\Tests\NestedMatcher

Code

public function setUp() {
  $this->routeDocument = $this
    ->buildMock('Symfony\\Cmf\\Component\\Routing\\Tests\\Routing\\RouteMock', array(
    'getDefaults',
    'getRouteKey',
    'compile',
  ));
  $this->routeCompiled = $this
    ->buildMock('Symfony\\Component\\Routing\\CompiledRoute');
  $this->context = $this
    ->buildMock('Symfony\\Component\\Routing\\RequestContext');
  $this->request = Request::create($this->url);
  $this->matcher = new UrlMatcher(new RouteCollection(), $this->context);
}