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


PHP CakeTestCase::setUp方法代码示例

本文整理汇总了PHP中CakeTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP CakeTestCase::setUp方法的具体用法?PHP CakeTestCase::setUp怎么用?PHP CakeTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CakeTestCase的用法示例。


在下文中一共展示了CakeTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 function setUp()
 {
     parent::setUp();
     $this->_pluginPath = App::pluginPath('AssetCompress');
     $this->_testPath = $this->_pluginPath . 'Test/test_files/css/';
     $this->filter = new TimestampImage();
 }
开发者ID:nojimage,项目名称:asset_compress,代码行数:7,代码来源:TimestampImageTest.php

示例2: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $controller = null;
     $this->View = new View($controller);
     $this->Rss = new RssHelper($this->View);
 }
开发者ID:hupla78,项目名称:Nadia,代码行数:12,代码来源:RssHelperTest.php

示例3: setUp

 /**
  * This function sets up a HttpSocket instance we are going to use for testing
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->HttpSocket = new DigestHttpSocket();
     $this->HttpSocket->request['method'] = 'GET';
     $this->HttpSocket->request['uri']['path'] = '/';
 }
开发者ID:yuuicchan0912,项目名称:sample2,代码行数:12,代码来源:DigestAuthenticationTest.php

示例4: setUp

 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $controller = null;
     $this->View = $this->getMock('View', array('addScript'), array(&$controller));
     $this->Moo = new MootoolsEngineHelper($this->View);
 }
开发者ID:slachiewicz,项目名称:_mojePanstwo-API-Server,代码行数:12,代码来源:MootoolsEngineHelperTest.php

示例5: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Time = new CakeTime();
     $this->_systemTimezoneIdentifier = date_default_timezone_get();
     Configure::write('Config.language', 'eng');
 }
开发者ID:terriblyuncreative,项目名称:moviedb,代码行数:12,代码来源:CakeTimeTest.php

示例6: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->BlogFrameSetting = ClassRegistry::init('Blogs.BlogFrameSetting');
     // モデルからビヘイビアをはずす:
     $this->BlogFrameSetting->Behaviors->unload('Trackable');
 }
开发者ID:Onasusweb,项目名称:Blogs,代码行数:12,代码来源:BlogFrameSettingTest.php

示例7: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('Cache.disable', true);
     App::build();
     App::objects('plugin', null, true);
 }
开发者ID:angel-mendoza,项目名称:proyecto-pasantia,代码行数:12,代码来源:ConfigureTest.php

示例8: setUp

 /**
  * setUp method
  *
  * Se the request info to something innocuous but valid, link the helper to a view instance
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Router::setRequestInfo(array(array('controller' => 'posts', 'action' => 'action'), array('base' => '/', 'webroot' => '/', 'here' => '/posts/action')));
     $View = new View();
     $this->Menu = new MenuHelper($View);
 }
开发者ID:nodesagency,项目名称:Platform-Common-Plugin,代码行数:14,代码来源:MenuHelperTest.php

示例9: setUp

 /**
  * setup test
  *
  * @return void
  */
 public function setUp()
 {
     $this->out = $this->getMock('ConsoleOutput', array(), array(), '', false);
     $this->in = $this->getMock('ConsoleInput', array(), array(), '', false);
     $this->Shell = $this->getMock('TranslationsShell', array('in', 'out', 'hr', 'err', '_stop', '_getModels'), array($this->out, $this->out, $this->in));
     parent::setUp();
 }
开发者ID:nodesagency,项目名称:Platform-Crud-Plugin,代码行数:12,代码来源:TranslationsShellTest.php

示例10: setUp

 /**
  * setUp
  *
  * @retun void
  * @access public
  */
 public function setUp()
 {
     parent::setUp();
     $this->Controller = new Controller(null);
     $this->View = new View($this->Controller);
     $this->Locale = new LocaleHelper($this->View, array('locale' => 'pt_BR'));
 }
开发者ID:radig,项目名称:locale,代码行数:13,代码来源:LocaleHelperTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $Controller = new Controller();
     $View = new View($Controller);
     $this->Tab = new BootstrapTabHelper($View);
 }
开发者ID:cwbit,项目名称:cakephp-bootstrap-suite,代码行数:7,代码来源:BootstrapTabHelperTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $Controller = new Controller();
     $View = new View($Controller);
     $this->Progress = new ProgressHelper($View);
 }
开发者ID:himeno,项目名称:cakephp_unittest,代码行数:7,代码来源:ProgressHelperTest.php

示例13: setUp

 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->View = new View();
     $this->Form = new BoostCakeFormHelper($this->View);
     ClassRegistry::addObject('Contact', new Contact());
 }
开发者ID:hiryu85,项目名称:cakephp-boost-cake,代码行数:12,代码来源:BoostCakeFormHelperTest.php

示例14: setUp

 /**
  * Start test
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->Version = new MigrationVersion(array('connection' => 'test', 'autoinit' => false));
     App::build(array('plugins' => CakePlugin::path('Migrations') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS));
     Configure::write('Config.language', 'en');
 }
开发者ID:cakedc,项目名称:migrations,代码行数:12,代码来源:MigrationVersionTest.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     Configure::delete('Ajax');
     $this->Controller = new AjaxComponentTestController(new CakeRequest(), new CakeResponse());
     $this->Controller->constructClasses();
 }
开发者ID:Jony01,项目名称:LLD,代码行数:7,代码来源:AjaxComponentTest.php


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