public function ProviderBasedGeneratorTest::setUp

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ProviderBasedGeneratorTest.php, line 21

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