當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。