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


PHP Solar_Test類代碼示例

本文整理匯總了PHP中Solar_Test的典型用法代碼示例。如果您正苦於以下問題:PHP Solar_Test類的具體用法?PHP Solar_Test怎麽用?PHP Solar_Test使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: preTest

 public function preTest()
 {
     parent::preTest();
     // var dumpers
     $this->_text = Solar::factory('Solar_Debug_Var', array('output' => 'text'));
     $this->_html = Solar::factory('Solar_Debug_Var', array('output' => 'html'));
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:7,代碼來源:Var.php

示例2: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     // remove "Test_" prefix
     $this->_class = substr(get_class($this), 5);
     $this->_access = Solar::factory($this->_class, $this->_config);
     parent::preTest();
 }
開發者ID:kdambekalns,項目名稱:framework-benchs,代碼行數:12,代碼來源:Adapter.php

示例3: preTest

 public function preTest()
 {
     parent::preTest();
     $this->_filter = Solar::factory('Solar_Filter');
     $this->_plugin = $this->_filter->getFilter($this->_plugin_name);
     $this->_filter->setRequire(true);
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:7,代碼來源:Abstract.php

示例4: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     // remove "Test_" prefix
     $this->_class = substr(get_class($this), 5);
     // get the request environment
     $this->_request = Solar_Registry::get('request');
     // get a new adapter
     $this->_auth = Solar::factory($this->_class, $this->_config);
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:15,代碼來源:Adapter.php

示例5: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     // when running from the command line, these elements are empty.
     // fake them so that web-like testing can occur.
     $_SERVER['HTTP_HOST'] = 'example.com';
     $_SERVER['SCRIPT_NAME'] = '/path/to/index.php';
     $_SERVER['PATH_INFO'] = '/appname/action';
     $_SERVER['QUERY_STRING'] = 'foo=bar&baz=dib';
     $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'] . '?' . $_SERVER['QUERY_STRING'];
 }
開發者ID:kdambekalns,項目名稱:framework-benchs,代碼行數:16,代碼來源:Uri.php

示例6: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     // set up an SQL connection
     $this->_sql = Solar::factory('Solar_Sql', $this->_sql_config);
     // set up a model catalog
     $this->_catalog = Solar::factory('Solar_Sql_Model_Catalog', $this->_catalog_config);
     // register the connection and catalog
     Solar_Registry::set('sql', $this->_sql);
     Solar_Registry::set('model_catalog', $this->_catalog);
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:16,代碼來源:Model.php

示例7: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     // set up an SQL connection
     $this->_sql = Solar::factory('Solar_Sql', $this->_sql_config);
     $this->_sql->setProfiling(true);
     // set up a model catalog
     $this->_catalog = Solar::factory('Solar_Sql_Model_Catalog', $this->_catalog_config);
     // register the connection and catalog
     Solar_Registry::set('sql', $this->_sql);
     Solar_Registry::set('model_catalog', $this->_catalog);
     // populate everything
     $this->_populateAll();
 }
開發者ID:kdambekalns,項目名稱:framework-benchs,代碼行數:19,代碼來源:Record.php

示例8: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     // set up an SQL connection
     $this->_sql = Solar::factory('Solar_Sql', $this->_sql_config);
     $this->_sql->setProfiling(true);
     // set up a model catalog
     $this->_catalog = Solar::factory('Solar_Sql_Model_Catalog', $this->_catalog_config);
     // register the connection and catalog
     Solar_Registry::set('sql', $this->_sql);
     Solar_Registry::set('model_catalog', $this->_catalog);
     // fixture to populate tables
     $this->_fixture = Solar::factory('Fixture_Solar_Sql_Model');
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:19,代碼來源:Collection.php

示例9: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     // set up an SQL connection
     $this->_sql = Solar::factory('Solar_Sql', $this->_sql_config);
     $this->_sql->setProfiling(true);
     // set up a model catalog
     $this->_catalog = Solar::factory('Solar_Sql_Model_Catalog', $this->_catalog_config);
     // register the connection and catalog
     Solar_Registry::set('sql', $this->_sql);
     Solar_Registry::set('model_catalog', $this->_catalog);
     // set the class name for relateds
     $len = strlen('Test_');
     $this->_class = substr(get_class($this), $len);
     // populate everything
     $this->_populateAll();
 }
開發者ID:kdambekalns,項目名稱:framework-benchs,代碼行數:22,代碼來源:Related.php

示例10: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     // set up an SQL connection
     $this->_sql = Solar::factory('Solar_Sql', $this->_sql_config);
     // set up a model catalog
     $this->_catalog = Solar::factory('Solar_Sql_Model_Catalog', $this->_catalog_config);
     // register the connection and catalog
     Solar_Registry::set('sql', $this->_sql);
     Solar_Registry::set('model_catalog', $this->_catalog);
     // fixture to populate tables
     $this->_fixture = Solar::factory('Fixture_Solar_Sql_Model');
     $this->_fixture->setup();
     // preload all models to get discovery out of the way
     $this->_catalog->users;
     $this->_catalog->prefs;
     $this->_catalog->areas;
     $this->_catalog->nodes;
     $this->_catalog->metas;
     $this->_catalog->tags;
     $this->_catalog->taggings;
     $this->_catalog->comments;
     $this->_sql->setProfiling(true);
 }
開發者ID:kalkin,項目名稱:solarphp,代碼行數:29,代碼來源:Queries.php

示例11: teardown

 /**
  * 
  * Teardown; runs after each test method.
  * 
  */
 public function teardown()
 {
     parent::teardown();
 }
開發者ID:btweedy,項目名稱:foresmo,代碼行數:9,代碼來源:Collection.php

示例12: _postConstruct

 protected function _postConstruct()
 {
     parent::_postConstruct();
     $this->_support_path = Solar_Class::dir('Mock_Solar_Path_Stack');
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:5,代碼來源:Stack.php

示例13: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     Solar_Registry::set('sql', 'Solar_Sql');
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:10,代碼來源:Select.php

示例14: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     $this->_page = Solar::factory($this->_page_class);
 }
開發者ID:agentile,項目名稱:foresmo,代碼行數:10,代碼來源:Page.php

示例15: setup

 public function setup()
 {
     parent::setup();
     Solar_Registry::set('sql', 'Solar_Sql');
     Solar_Registry::set('model_catalog', 'Solar_Sql_Model_Catalog');
 }
開發者ID:btweedy,項目名稱:foresmo,代碼行數:6,代碼來源:Model.php


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