当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractPlatform::expects方法代码示例

本文整理汇总了PHP中Doctrine\DBAL\Platforms\AbstractPlatform::expects方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractPlatform::expects方法的具体用法?PHP AbstractPlatform::expects怎么用?PHP AbstractPlatform::expects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Doctrine\DBAL\Platforms\AbstractPlatform的用法示例。


在下文中一共展示了AbstractPlatform::expects方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 protected function setUp()
 {
     // class has private constructor
     $this->type = $this->getMockBuilder('Oro\\Bundle\\LocaleBundle\\DoctrineExtensions\\DBAL\\Types\\UTCTimeType')->setMethods(null)->disableOriginalConstructor()->getMock();
     $this->platform = $this->getMockBuilder('Doctrine\\DBAL\\Platforms\\AbstractPlatform')->disableOriginalConstructor()->setMethods(array('getTimeFormatString'))->getMockForAbstractClass();
     $this->platform->expects($this->any())->method('getTimeFormatString')->will($this->returnValue('H:i:s'));
 }
开发者ID:Maksold,项目名称:platform,代码行数:7,代码来源:UTCTimeTypeTest.php

示例2: setUp

 protected function setUp()
 {
     $this->platform = $this->getMockBuilder('Doctrine\\DBAL\\Platforms\\AbstractPlatform')->setMethods(array('getVarcharTypeDeclarationSQL'))->getMockForAbstractClass();
     $this->platform->expects($this->any())->method('getVarcharTypeDeclarationSQL')->will($this->returnValue('DUMMYVARCHAR()'));
     $this->type = Type::getType('phone_number');
     $this->phoneNumberUtil = PhoneNumberUtil::getInstance();
 }
开发者ID:skafandri,项目名称:phone-number-bundle,代码行数:7,代码来源:PhoneNumberTypeTest.php

示例3: testResetsQueries

 public function testResetsQueries()
 {
     foreach (array('supportsSchemas', 'supportsForeignKeys') as $method) {
         $this->platformMock->expects($this->any())->method($method)->will($this->returnValue(true));
     }
     $table = $this->createTableMock();
     $foreignKey = $this->createForeignKeyConstraintMock();
     $sequence = $this->createSequenceMock();
     $this->visitor->acceptNamespace('foo');
     $this->visitor->acceptTable($table);
     $this->visitor->acceptForeignKey($table, $foreignKey);
     $this->visitor->acceptSequence($sequence);
     $this->assertNotEmpty($this->visitor->getQueries());
     $this->visitor->resetQueries();
     $this->assertEmpty($this->visitor->getQueries());
 }
开发者ID:selimcr,项目名称:servigases,代码行数:16,代码来源:CreateSchemaSqlCollectorTest.php

示例4: setUp

 protected function setUp()
 {
     $this->platform = $this->getMockBuilder('Doctrine\\DBAL\\Platforms\\AbstractPlatform')->setMethods(array('getGuidTypeDeclarationSQL'))->getMockForAbstractClass();
     $this->platform->expects($this->any())->method('getGuidTypeDeclarationSQL')->will($this->returnValue('DUMMYVARCHAR()'));
     $this->type = Type::getType('str_uuid');
 }
开发者ID:scr-be,项目名称:arthur-doctrine-uuid-library,代码行数:6,代码来源:StringUuidTypeTest.php


注:本文中的Doctrine\DBAL\Platforms\AbstractPlatform::expects方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。