本文整理汇总了PHP中Propel\Generator\Model\Table::getGeneratorConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP Table::getGeneratorConfig方法的具体用法?PHP Table::getGeneratorConfig怎么用?PHP Table::getGeneratorConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Propel\Generator\Model\Table
的用法示例。
在下文中一共展示了Table::getGeneratorConfig方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetGeneratorConfig
public function testGetGeneratorConfig()
{
$config = $this->getMockBuilder('Propel\\Generator\\Config\\GeneratorConfig')->disableOriginalConstructor()->getMock();
$database = $this->getDatabaseMock('foo');
$database->expects($this->once())->method('getGeneratorConfig')->will($this->returnValue($config));
$table = new Table();
$table->setDatabase($database);
$this->assertSame($config, $table->getGeneratorConfig());
}
示例2: testGetGeneratorConfig
public function testGetGeneratorConfig()
{
$schema = $this->getMock('Propel\\Generator\\Model\\Schema');
$config = $this->getMock('Propel\\Generator\\Config\\GeneratorConfig');
$schema->expects($this->once())->method('getGeneratorConfig')->will($this->returnValue($config));
$database = $this->getDatabaseMock('foo');
$database->expects($this->once())->method('getParentSchema')->will($this->returnValue($schema));
$table = new Table();
$table->setDatabase($database);
$this->assertInstanceOf('Propel\\Generator\\Config\\GeneratorConfig', $table->getGeneratorConfig());
}