You are here

protected function ChainRouterTest::createRouterMocks in Zircon Profile 8

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

Return value

RouterInterface[]|\PHPUnit_Framework_MockObject_MockObject[]

18 calls to ChainRouterTest::createRouterMocks()
ChainRouterTest::testContext in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
context must be propagated to chained routers and be stored locally
ChainRouterTest::testContextOrder in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
context must be propagated also when routers are added after context is set
ChainRouterTest::testGenerate in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
ChainRouterTest::testGenerateNotFound in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
@expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
ChainRouterTest::testMatch in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
The first usable match is used, no further routers are queried once a match is found

... See full list

File

vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php, line 710

Class

ChainRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

protected function createRouterMocks() {
  return array(
    $this
      ->getMock('Symfony\\Component\\Routing\\RouterInterface'),
    $this
      ->getMock('Symfony\\Component\\Routing\\RouterInterface'),
    $this
      ->getMock('Symfony\\Component\\Routing\\RouterInterface'),
  );
}