本文整理汇总了PHP中Doctrine_UnitTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP Doctrine_UnitTestCase类的具体用法?PHP Doctrine_UnitTestCase怎么用?PHP Doctrine_UnitTestCase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Doctrine_UnitTestCase类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prepareTables
public function prepareTables()
{
$this->tables = array();
$this->tables[] = "T1323User";
$this->tables[] = "T1323UserReference";
parent::prepareTables();
}
示例2: prepareTables
public function prepareTables()
{
$this->tables = array();
$this->tables[] = 'Email';
parent :: prepareTables();
}
示例3: prepareTables
public function prepareTables()
{
$this->tables[] = "Photo";
$this->tables[] = "Tag";
$this->tables[] = "Phototag";
parent::prepareTables();
}
示例4: prepareTables
public function prepareTables()
{
//$this->tables = array();
$this->tables[] = 'Ticket_1280_User';
$this->tables[] = 'Ticket_1280_Group';
parent::prepareTables();
}
示例5: prepareTables
public function prepareTables()
{
$this->tables[] = 'T1381_Comment';
$this->tables[] = 'T1381_Article';
parent::prepareTables();
}
示例6: prepareTables
/**
* prepareTables
*/
public function prepareTables()
{
$this->tables = array();
$this->tables[] = 'Author';
$this->tables[] = 'Book';
parent::prepareTables();
}
示例7: prepareTables
public function prepareTables()
{
$this->profiler = new Doctrine_Connection_Profiler();
$this->conn->addListener($this->profiler);
$this->tables = array('VersioningTest', 'VersioningTestVersion', 'VersioningTest2');
parent::prepareTables();
}
示例8: prepareTables
public function prepareTables()
{
$this->tables = array('Record_Country', 'Record_City', 'Record_District', 'Entity',
'User', 'Group', 'Email', 'Phonenumber', 'Groupuser', 'Account');
parent::prepareTables();
}
示例9: prepareData
public function prepareData()
{
parent::prepareData();
$role = new Ticket_1131_Role();
$role->name = 'Role One';
$role->save();
$this->role_one = $role->id;
$role->free();
$role = new Ticket_1131_Role();
$role->name = 'Role Two';
$role->save();
$this->role_two = $role->id;
$role->free();
$group = new Ticket_1131_Group();
$group->role_id = $this->role_one;
$group->name = 'Core Dev';
$group->save();
$user = new Ticket_1131_User();
$user->Group = $group;
$user->role_id = $this->role_two;
$user->name = 'jwage';
$user->save();
$group->free();
$user->free();
}
示例10: prepareTables
public function prepareTables()
{
Doctrine_Core::setExtensionsPath(dirname(__FILE__) . '/Extension');
spl_autoload_register(array('Doctrine', 'extensionsAutoload'));
Doctrine_Manager::getInstance()->registerExtension('TestExtension');
$this->tables[] = 'ExtensionBehaviorTest';
parent::prepareTables();
}
示例11: prepareTables
public function prepareTables()
{
$this->tables = array();
$this->tables[] = 'T1';
$this->tables[] = 'T2';
$this->tables[] = 'T3';
parent::prepareTables();
}
示例12: prepareTables
public function prepareTables()
{
$manager = Doctrine_Manager::getInstance();
$manager->setImpl('Ticket_832_UserTemplate', 'Ticket_832_User')->setImpl('Ticket_832_EmailTemplate', 'Ticket_832_Email');
$this->tables[] = 'Ticket_832_User';
$this->tables[] = 'Ticket_832_Email';
parent::prepareTables();
}