You are here

public function RouteContentEnhancerTest::setUp in Zircon Profile 8

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

File

vendor/symfony-cmf/routing/Tests/Enhancer/RouteContentEnhancerTest.php, line 30

Class

RouteContentEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

public function setUp() {
  $this->document = $this
    ->buildMock('Symfony\\Cmf\\Component\\Routing\\Tests\\Enhancer\\RouteObject', array(
    'getContent',
    'getRouteDefaults',
    'getUrl',
  ));
  $this->mapper = new RouteContentEnhancer(RouteObjectInterface::ROUTE_OBJECT, '_content');
  $this->request = Request::create('/test');
}