当前位置: 首页>>代码示例>>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;未经允许,请勿转载。