You are here

public function UrlMatcherTest::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/Tests/NestedMatcher/UrlMatcherTest.php \Symfony\Cmf\Component\Routing\Tests\NestedMatcher\UrlMatcherTest::setUp()

File

vendor/symfony-cmf/routing/Tests/NestedMatcher/UrlMatcherTest.php, line 34

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);
}