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


PHP Zend_Test_PHPUnit_ControllerTestCase类代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例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: tearDown

 public function tearDown()
 {
     /* @var $dbAdapter Zend_Db_Adapter_Abstract */
     $dbAdapter = Zend_Registry::get('db');
     $dbAdapter->closeConnection();
     parent::tearDown();
 }
开发者ID:bradley-holt,项目名称:tasked,代码行数:7,代码来源:IndexControllerTest.php

示例7: tearDown

 protected function tearDown()
 {
     $this->resetRequest();
     $this->resetResponse();
     $this->_logout();
     parent::tearDown();
 }
开发者ID:neverstoplwy,项目名称:contrib-webacula,代码行数:7,代码来源:ControllerTestCase.php

示例8: 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

示例9: 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

示例10: __construct

 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     if (null == $this->bootstrap) {
         // Assign and instantiate in one step:
         $this->bootstrap = new Centurion_Application(APPLICATION_ENV, Centurion_Config_Directory::loadConfig(APPLICATION_PATH . '/configs/', APPLICATION_ENV, true));
     }
     parent::__construct($name, $data, $dataName);
 }
开发者ID:rom1git,项目名称:Centurion,代码行数:8,代码来源:ControllerTestCase.php

示例11: reset

 /**
  * Добавлено закрытие mysql-соединения при сбросе
  *
  * @return void
  */
 public function reset()
 {
     parent::reset();
     $db = Zend_Db_Table_Abstract::getDefaultAdapter();
     if ($db instanceof Zend_Db_Adapter_Abstract) {
         $db->closeConnection();
     }
 }
开发者ID:eugenzor,项目名称:zfhrtool,代码行数:13,代码来源:ControllerTestCase.php

示例12: 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

示例13: 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

示例14: __construct

 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     if (null == $this->bootstrap) {
         // Assign and instantiate in one step:
         $this->bootstrap = new Centurion_Application('testing', APPLICATION_PATH . '/configs/');
     }
     parent::__construct($name, $data, $dataName);
 }
开发者ID:netconstructor,项目名称:Centurion,代码行数:8,代码来源:ControllerTestCase.php

示例15: dispatch

 public function dispatch($url = null)
 {
     // removing this helper solves issues with multiple redirects in one test
     // a fresh instance of helper is registered anyway
     Zend_Controller_Action_HelperBroker::removeHelper('redirector');
     //         Zend_Controller_Action_HelperBroker::removeHelper('flashMessenger');
     parent::dispatch($url);
 }
开发者ID:lukaszjankowski,项目名称:alchemy,代码行数:8,代码来源:ControllerTestCase.php


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