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