• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Solar_Test类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了Solar_Test类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: preTest

 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     parent::preTest();
     $this->_session = Solar::factory('Solar_Session');
     $this->_session->setClass($this->_class);
 }
开发者ID:agentile,项目名称:foresmo,代码行数:11,代码来源:Session.php


示例17: postTest

 /**
  * 
  * Setup; runs after each test method.
  * 
  */
 public function postTest()
 {
     $this->_adapter = null;
     parent::postTest();
 }
开发者ID:agentile,项目名称:foresmo,代码行数:10,代码来源:Adapter.php


示例18: teardown

 /**
  * 
  * Setup; runs after each test method.
  * 
  */
 public function teardown()
 {
     $this->_adapter = null;
     parent::teardown();
 }
开发者ID:btweedy,项目名称:foresmo,代码行数:10,代码来源:Adapter.php


示例19: preTest

 public function preTest()
 {
     parent::preTest();
     $this->_helper = $this->_view->getHelper($this->_helper_name);
 }
开发者ID:agentile,项目名称:foresmo,代码行数:5,代码来源:Helper.php


示例20: preTest

 public function preTest()
 {
     parent::preTest();
     $this->_markdown = Solar::factory('Solar_Markdown_Wiki');
 }
开发者ID:agentile,项目名称:foresmo,代码行数:5,代码来源:Wiki.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Solarium_Client类代码示例发布时间:2022-05-23
下一篇:
PHP Solar_Registry类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap