Bolt\Tests\Events\MountEventTest::getMockControllerCollection PHP Метод

getMockControllerCollection() защищенный Метод

protected getMockControllerCollection ( array $methods = ['connect', 'mount'], Silex\Route $route ) : PHPUnit_Framework_MockObject_MockObject | Silex\ControllerCollection
$methods array
$route Silex\Route
Результат PHPUnit_Framework_MockObject_MockObject | Silex\ControllerCollection
    protected function getMockControllerCollection($methods = ['connect', 'mount'], Route $route)
    {
        return $this->getMockBuilder(ControllerCollection::class)->setMethods($methods)->setConstructorArgs([$route])->getMock();
    }