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


PHP Doctrine_UnitTestCase类代码示例

本文整理汇总了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();
 }
开发者ID:dracony,项目名称:forked-php-orm-benchmark,代码行数:7,代码来源:1323TestCase.php

示例2: prepareTables

    public function prepareTables()
    {
        $this->tables = array();
        $this->tables[] = 'Email';

        parent :: prepareTables();
    }
开发者ID:prismhdd,项目名称:victorioussecret,代码行数:7,代码来源:927TestCase.php

示例3: prepareTables

 public function prepareTables()
 {
     $this->tables[] = "Photo";
     $this->tables[] = "Tag";
     $this->tables[] = "Phototag";
     parent::prepareTables();
 }
开发者ID:ninjapenguin,项目名称:kohana-Doctrine-module,代码行数:7,代码来源:LimitTestCase.php

示例4: prepareTables

 public function prepareTables()
 {
     //$this->tables = array();
     $this->tables[] = 'Ticket_1280_User';
     $this->tables[] = 'Ticket_1280_Group';
     parent::prepareTables();
 }
开发者ID:dracony,项目名称:forked-php-orm-benchmark,代码行数:7,代码来源:1280TestCase.php

示例5: prepareTables

    public function prepareTables()
    {
        $this->tables[] = 'T1381_Comment';
        $this->tables[] = 'T1381_Article';

        parent::prepareTables();
    }
开发者ID:prismhdd,项目名称:victorioussecret,代码行数:7,代码来源:1381TestCase.php

示例6: prepareTables

 /**
  * prepareTables
  */
 public function prepareTables()
 {
     $this->tables = array();
     $this->tables[] = 'Author';
     $this->tables[] = 'Book';
     parent::prepareTables();
 }
开发者ID:swk,项目名称:bluebox,代码行数:10,代码来源:574TestCase.php

示例7: prepareTables

 public function prepareTables()
 {
     $this->profiler = new Doctrine_Connection_Profiler();
     $this->conn->addListener($this->profiler);
     $this->tables = array('VersioningTest', 'VersioningTestVersion', 'VersioningTest2');
     parent::prepareTables();
 }
开发者ID:swk,项目名称:bluebox,代码行数:7,代码来源:AuditLogTestCase.php

示例8: prepareTables

    public function prepareTables()
    {
        $this->tables = array('Record_Country', 'Record_City', 'Record_District', 'Entity',
                              'User', 'Group', 'Email', 'Phonenumber', 'Groupuser', 'Account');

        parent::prepareTables();
    }
开发者ID:prismhdd,项目名称:victorioussecret,代码行数:7,代码来源:JoinTestCase.php

示例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();
 }
开发者ID:swk,项目名称:bluebox,代码行数:25,代码来源:1131TestCase.php

示例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();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:8,代码来源:ExtensionTestCase.php

示例11: prepareTables

 public function prepareTables()
 {
     $this->tables = array();
     $this->tables[] = 'T1';
     $this->tables[] = 'T2';
     $this->tables[] = 'T3';
     parent::prepareTables();
 }
开发者ID:swk,项目名称:bluebox,代码行数:8,代码来源:969TestCase.php

示例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();
 }
开发者ID:dennybrandes,项目名称:doctrine1,代码行数:8,代码来源:832TestCase.php


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