You are here

public function ProviderBasedGeneratorTest::setUp in Zircon Profile 8.0

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

File

vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php, line 31

Class

ProviderBasedGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function setUp() {
  $this->routeDocument = $this
    ->buildMock('Symfony\\Component\\Routing\\Route', array(
    'getDefaults',
    'compile',
  ));
  $this->routeCompiled = $this
    ->buildMock('Symfony\\Component\\Routing\\CompiledRoute');
  $this->provider = $this
    ->buildMock('Symfony\\Cmf\\Component\\Routing\\RouteProviderInterface');
  $this->context = $this
    ->buildMock('Symfony\\Component\\Routing\\RequestContext');
  $this->generator = new TestableProviderBasedGenerator($this->provider);
}