本文整理汇总了PHP中Symfony\Component\Form\Test\TypeTestCase::getExtensions方法的典型用法代码示例。如果您正苦于以下问题:PHP TypeTestCase::getExtensions方法的具体用法?PHP TypeTestCase::getExtensions怎么用?PHP TypeTestCase::getExtensions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symfony\Component\Form\Test\TypeTestCase
的用法示例。
在下文中一共展示了TypeTestCase::getExtensions方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getExtensions
protected function getExtensions()
{
/** @var ContainerAwareRegistry|\PHPUnit_Framework_MockObject_MockObject $registry */
$registry = $this->getMockBuilder(ContainerAwareRegistry::class)->setMethods(['getGateways'])->disableOriginalConstructor()->getMock();
$registry->expects($this->once())->method('getGateways')->willReturn(self::$gateways);
return array_merge(parent::getExtensions(), [new GatewayExtension($registry)]);
}
示例2: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new ValidatorExtension($this->validator)));
}
示例3: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new CsrfExtension($this->tokenManager, $this->translator)));
}
示例4: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new DoctrineOrmExtension($this->emRegistry)));
}
示例5: getExtensions
/**
* @see \Symfony\Component\Form\Tests\FormIntegrationTestCase::getExtensions()
*/
protected function getExtensions()
{
return array_merge(parent::getExtensions(), [new DoctrineMongoDBExtension($this->dmRegistry)]);
}
示例6: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new FilterExtension($this->filter, $this->autoFilter)));
}
示例7: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new AliasExtension($this->requestStack)));
}
示例8: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new ValidatorExtension(Validation::createValidator())));
}
示例9: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new CmfCoreExtension()));
}
示例10: getExtensions
protected function getExtensions()
{
return array_merge(parent::getExtensions(), array(new PreloadedExtension(array(CheckboxUrlLabelFormType::class => new CheckboxUrlLabelFormType(new Router())), array())));
}