public function UrlMatcherTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
Namespace
Symfony\Cmf\Component\Routing\Tests\NestedMatcherCode
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);
}