You are here

protected function CmfUnitTestCase::buildMock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Test/CmfUnitTestCase.php \Symfony\Cmf\Component\Routing\Test\CmfUnitTestCase::buildMock()
31 calls to CmfUnitTestCase::buildMock()
ChainRouterTest::testReSortRouters in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
This test ensures that if a router is being added on the fly, the sorting is reset.
ChainRouterTest::testRouteCollection in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
ChainRouterTest::testSortRouters in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
Routers are supposed to be sorted only once. This test will check that by trying to get all routers several times.
ContentAwareGeneratorTest::setUp in vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php
ContentAwareGeneratorTest::testGenerateDocumentMultilang in vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php

... See full list

File

vendor/symfony-cmf/routing/Test/CmfUnitTestCase.php, line 16

Class

CmfUnitTestCase

Namespace

Symfony\Cmf\Component\Routing\Test

Code

protected function buildMock($class, array $methods = array()) {
  return $this
    ->getMockBuilder($class)
    ->disableOriginalConstructor()
    ->setMethods($methods)
    ->getMock();
}