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


PHP Zend_Test_PHPUnit_ControllerTestCase::setUp方法代碼示例

本文整理匯總了PHP中Zend_Test_PHPUnit_ControllerTestCase::setUp方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Test_PHPUnit_ControllerTestCase::setUp方法的具體用法?PHP Zend_Test_PHPUnit_ControllerTestCase::setUp怎麽用?PHP Zend_Test_PHPUnit_ControllerTestCase::setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Test_PHPUnit_ControllerTestCase的用法示例。


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

示例1: setUp

 public function setUp()
 {
     $_SERVER['HTTP_HOST'] = 'cherbouquin';
     $_SERVER['REQUEST_URI'] = 'test_request_uri';
     $this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
     parent::setUp();
 }
開發者ID:berliozd,項目名稱:cherbouquin,代碼行數:7,代碼來源:BookControllerTest.php

示例2: setUp

 public function setUp()
 {
     $this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
     $this->_filesForCreate = glob($this->_getCreatePath() . '*.csv');
     $this->_filesForUpdate = glob($this->_getUpdatePath() . '*.csv');
     parent::setUp();
 }
開發者ID:OnekO,項目名稱:csvdemo,代碼行數:7,代碼來源:IndexControllerTest.php

示例3: setUp

 public function setUp()
 {
     $this->bootstrap = array($this, 'appBootstrap');
     parent::setUp();
     $this->getFrontController()->setParam('bootstrap', $this->_application->getBootstrap());
     // $this->getConnection();
 }
開發者ID:vishaleyes,項目名稱:cookingwithzend,代碼行數:7,代碼來源:ControllerTestCase.php

示例4: setUp

 public function setUp()
 {
     $this->bootstrap = array($this, 'appBootstrap');
     parent::setUp();
     $this->userInitials = '';
     $directory = dirname(__FILE__);
     if (strpos($directory, 'clydes') > 1) {
         $this->userInitials = 'cs';
     } elseif (strpos($directory, 'aouie') > 1) {
         $this->userInitials = 'ag';
     } elseif (strpos($directory, 'raph') > 1) {
         $this->userInitials = 'ro';
     } elseif (strpos($directory, 'andrew') > 1) {
         $this->userInitials = 'aa';
     } elseif (strpos($directory, 'charle') > 1) {
         $this->userInitials = 'cm';
     } elseif (strpos($directory, 'patrick') > 1) {
         $this->userInitials = 'pq';
     }
     // As some tests fail on date switches delay if too close to a date switch.
     if (date("H:i:s") > '23:59:50') {
         echo "Sleeping for 10 secs as date is about to switch.\n";
         sleep(10);
     }
 }
開發者ID:biscuiteater,項目名稱:gamebox,代碼行數:25,代碼來源:ControllerTestCase.php

示例5: setUp

 public function setUp()
 {
     $this->bootstrap = array($this, 'appBootstrap');
     parent::setUp();
     Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_NonPersistent());
     $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
 }
開發者ID:kminkov,項目名稱:Blog,代碼行數:7,代碼來源:ControllerTestCase.php

示例6: setUp

 public function setUp()
 {
     $this->appConfig = WEBSITE_PATH . '../configsGenerated/application.ini';
     $this->bootstrap = new Zend_Application(APPLICATION_PROCEDURE, $this->appConfig);
     ModelFactory::getInstance()->reset();
     parent::setUp();
 }
開發者ID:lukaszjankowski,項目名稱:alchemy,代碼行數:7,代碼來源:ControllerTestCase.php

示例7: setUp

 protected function setUp()
 {
     $this->initDb();
     $this->setUpGcFix();
     $this->resetCaches();
     parent::setUp();
 }
開發者ID:rukzuk,項目名稱:rukzuk,代碼行數:7,代碼來源:AbstractControllerTestCase.php

示例8: setUp

 public function setUp()
 {
     $this->bootstrap = array($this, 'appBootstrap');
     $params = array('host' => '127.0.0.1', 'username' => 'lds', 'password' => '123', 'dbname' => 'lds0019');
     $db = Zend_Db::factory('PDO_MYSQL', $params);
     Zend_Registry::set('db', $db);
     parent::setUp();
 }
開發者ID:sandin,項目名稱:iMemo,代碼行數:8,代碼來源:ControllerTestCase.php

示例9: setUp

 public function setUp()
 {
     $this->stopCodeCoverage();
     $this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
     parent::setUp();
     $this->truncateAllTables(false, []);
     $this->resumeCodeCoverage(false);
 }
開發者ID:jaydiablo,項目名稱:xdebug-test-case,代碼行數:8,代碼來源:IndexControllerTest.php

示例10: setUp

 public function setUp()
 {
     $this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
     $controller = $this->getFrontController();
     $controller->registerPlugin(new Rph_Controller_Plugin_LoginRequired());
     parent::setUp();
     $this->loginAdmin('admin', 'admin');
 }
開發者ID:raphaeldealmeida,項目名稱:Demagogos,代碼行數:8,代碼來源:SessionControllerTest.php

示例11: setUp

    public function setUp()
    {
        include APPLICATION_PATH . '/../scripts/load.sqlite.php';

        $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
        $this->bootstrap = array($application->getBootstrap(), 'bootstrap');
        return parent::setUp();
    }
開發者ID:nestorfabian,項目名稱:REST-Example-App-for-Zend-Framework,代碼行數:8,代碼來源:GuestbookControllerTest.php

示例12: setUp

 public function setUp()
 {
     $this->appConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
     $this->doctrine();
     $this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
     parent::setUp();
     return;
 }
開發者ID:nishantcbse,項目名稱:github-adv-search,代碼行數:8,代碼來源:bootstrap.php

示例13: setUp

	public function setUp ()
	{
		$app = new App ();

		/* the following line is a Zend_Test or PHPUnit feature that
		 * calls $app->bootstrap. @todo: link to documentation. */
		$this->bootstrap = array ($app, 'bootstrap');
		parent::setUp ();
	}
開發者ID:rajatkhanduja,項目名稱:opc,代碼行數:9,代碼來源:OpcTest.php

示例14: setUp

 public function setUp()
 {
     // \Zend_Application: loads the autoloader
     require_once 'Zend/Application.php';
     // Create application, bootstrap, and run
     $application = new \Zend_Application(APPLICATION_ENV, GEMS_ROOT_DIR . '/configs/application.example.ini');
     $this->bootstrap = $application;
     parent::setUp();
 }
開發者ID:GemsTracker,項目名稱:gemstracker-library,代碼行數:9,代碼來源:ControllerTestAbstract.php

示例15: setUp

 public function setUp()
 {
     $this->_logger = Zend_Registry::get('logger');
     if ($this->_databaseUsage) {
         $this->setupDatabase();
     }
     $this->bootstrap = new Zend_Application('testing', APPLICATION_PATH . '/configs/application.ini');
     parent::setUp();
 }
開發者ID:dmelo,項目名稱:dzend,代碼行數:9,代碼來源:ControllerTestCase.php


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