當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CakeTestCase::start方法代碼示例

本文整理匯總了PHP中CakeTestCase::start方法的典型用法代碼示例。如果您正苦於以下問題:PHP CakeTestCase::start方法的具體用法?PHP CakeTestCase::start怎麽用?PHP CakeTestCase::start使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CakeTestCase的用法示例。


在下文中一共展示了CakeTestCase::start方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: start

 function start()
 {
     parent::start();
     if (in_array('plugin.media.song', $this->fixtures)) {
         $this->loadFixtures('Song');
     }
 }
開發者ID:rcaravita,項目名稱:jodeljodel,代碼行數:7,代碼來源:base.test.php

示例2: start

 function start()
 {
     parent::start();
     Configure::write('Content', array('base' => TMP . 'tests' . DS, 'git' => TMP . 'tests' . DS . 'git' . DS, 'svn' => TMP . 'tests' . DS . 'svn' . DS));
     $this->AuthorizedKeys = new File(TMP . 'tests/git/repo/.ssh/authorized_keys', true);
     $this->User =& ClassRegistry::init('User');
 }
開發者ID:Theaxiom,項目名稱:chaw-source,代碼行數:7,代碼來源:user.test.php

示例3: start

 /**
  * @return  void
  */
 public function start()
 {
     parent::start();
     $this->Metadatum =& ClassRegistry::init('Metadata.Metadatum');
     $this->MetaThing =& ClassRegistry::init('Metadata.MetaThing');
     $this->MetaThing->Behaviors->attach('Metadata.Metadata', array('validate' => array('garbage' => array(array('rule' => 'isGarbage', 'message' => 'Must be garbage'), array('rule' => array('isGarbageLength', 7), 'message' => 'Must be garbage length 7')), 'empty' => array('rule' => 'isGarbage', 'message' => 'Must be garbage', 'allowEmpty' => true), 'postal' => array('rule' => 'postal', 'message' => 'Must be valid postal code'), 'dimensions' => array('inches' => array('height' => array(array('rule' => 'numeric', 'message' => 'Must be numeric'), array('rule' => array('decimal', 2), 'message' => 'Must be decimal')), 'width' => array('rule' => 'numeric', 'message' => 'Must be numeric'), 'depth' => array('rule' => 'numeric', 'message' => 'Must be numeric'), 'girth' => array('rule' => 'numeric', 'message' => 'Must be numeric', 'last' => true))))));
 }
開發者ID:hiltongoncalves,項目名稱:metadata,代碼行數:10,代碼來源:metadata.test.php

示例4: start

 function start()
 {
     parent::start();
     $this->Chaw = new TestChaw();
     $this->Chaw->Html = new HtmlHelper();
     $this->Chaw->params = array('url' => array('url' => '/', 'ext' => 'html'));
     $this->Chaw->webroot = '/';
 }
開發者ID:Theaxiom,項目名稱:chaw-source,代碼行數:8,代碼來源:chaw.test.php

示例5: start

 function start()
 {
     parent::start();
     $this->AuthwellUser = ClassRegistry::init('Authwell.AuthwellUser');
     $this->RecordObj = new AuthwellUserRecord($this->AuthwellUser);
     $this->RoleRecordObj = new AuthwellRoleRecord($this->AuthwellUser->AuthwellRole);
     $this->PrivRecordObj = new AuthwellPrivilegeRecord($this->AuthwellUser->AuthwellRole->AuthwellPrivilege);
 }
開發者ID:areisv,項目名稱:cakewell,代碼行數:8,代碼來源:authwell_user.test.php

示例6: start

 function start()
 {
     parent::start();
     $this->JsValidate =& ClassRegistry::init('JsValidate.JsValidate');
     $this->JsValidate->backupValidate = $this->JsValidate->validate;
     $this->JsValidate->validate = array();
     $this->Validation = new ValidationHelper();
     $this->Validation->Javascript = new JavascriptHelper();
 }
開發者ID:sandulungu,項目名稱:StarLight,代碼行數:9,代碼來源:js_validate.test.php

示例7: start

 function start()
 {
     parent::start();
     $this->JsValidate =& ClassRegistry::init('JsValidate');
     $this->JsValidate->backupValidate = $this->JsValidate->validate;
     $this->JsValidate->validate = array();
     $this->Validation = new ValidationHelper();
     $this->Validation->Js = new JsHelper();
     $this->Validation->Js->JqueryEngine = new JqueryEngineHelper();
     $this->Validation->Html = new HtmlHelper();
 }
開發者ID:real34,項目名稱:js_validate,代碼行數:11,代碼來源:validation.test.php

示例8: start

 function start()
 {
     $defaults = array('browser' => '*firefox', 'url' => 'http://localhost:8888/', 'host' => 'localhost', 'port' => 4444, 'speed' => false);
     Configure::load('selenium');
     $settings = Configure::read('Selenium');
     if (!is_array($settings)) {
         $settings = array();
     }
     $shell = array('browser' => $this->_getBrowser(), 'url' => $this->_getUrl(), 'host' => $this->_getHost(), 'port' => 4444, 'speed' => $this->_getSpeed());
     $shell = array_filter($shell);
     $this->settings = array_merge($defaults, $settings, $shell);
     return parent::start();
 }
開發者ID:rodrigorm,項目名稱:selenium-helper,代碼行數:13,代碼來源:selenium_test_case.php

示例9: start

 function start()
 {
     parent::start();
     $this->Portfolio = ClassRegistry::init('Portfolio');
     $this->Item = ClassRegistry::init('Item');
     $this->Syfile = ClassRegistry::init('Syfile');
     $this->Image = ClassRegistry::init('Image');
     $this->Message = ClassRegistry::init('Message');
     $this->Thread = ClassRegistry::init('Thread');
     $this->Portfolio->Behaviors->attach('LazyLoader');
     $this->Item->Behaviors->attach('LazyLoader');
     $this->Syfile->Behaviors->attach('LazyLoader');
     $this->Image->Behaviors->attach('LazyLoader');
     $this->Message->Behaviors->attach('LazyLoader');
     $this->Thread->Behaviors->attach('LazyLoader');
     $this->Image->bind('Syfile', array('hasOne'));
 }
開發者ID:saifsilver,項目名稱:cakephp-plugins,代碼行數:17,代碼來源:lazy_loader.test.php

示例10: start

 /**
  * Make sure all fixtures tables are being created
  *
  * @access public
  */
 function start()
 {
     $this->db->simulate = false;
     parent::start();
     $this->db->simulate = true;
 }
開發者ID:kevinmel2000,項目名稱:Study-Buddy---CakePHP-Quiz-System,代碼行數:11,代碼來源:dbo_mssql.test.php

示例11: start

 function start()
 {
     parent::start();
     $this->SimpleRecord = ClassRegistry::init('SimpleRecord');
 }
開發者ID:areisv,項目名稱:cakewell,代碼行數:5,代碼來源:simple_record.test.php

示例12: start

 function start()
 {
     parent::start();
     $this->Post = new MergePost();
     $this->Topic = new MergeTopic();
 }
開發者ID:vuthaiphat,項目名稱:CakePHP-Assets,代碼行數:6,代碼來源:merge.test.php

示例13: start

 /**
  * start
  *
  * @retun void
  * @access public
  */
 function start()
 {
     parent::start();
     $this->EstadoBrasileiro = new EstadoBrasileiro();
 }
開發者ID:niltonfelipe,項目名稱:e-cidade_transparencia,代碼行數:11,代碼來源:estado_brasileiro.test.php

示例14: start

 function start()
 {
     parent::start();
     $this->PageTest = ClassRegistry::init('Page');
 }
開發者ID:eduardobressane,項目名稱:cakephp-cms-plugin,代碼行數:5,代碼來源:page.test.php

示例15: start

 function start()
 {
     parent::start();
     $this->Suite = new TestSuite();
 }
開發者ID:erlendfh,項目名稱:Bromine,代碼行數:5,代碼來源:suite.test.php


注:本文中的CakeTestCase::start方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。