Пример #1
0
 public function setUp()
 {
     parent::setUp();
     Kohana::$config->load('url')->set('trusted_hosts', array('localhost'));
     $this->_initial_request = Request::$initial;
     Request::$initial = new Request('/');
 }
 public function setUp()
 {
     parent::setUp();
     // temporarily save $log object
     $this->_log_object = Kohana::$log;
     Kohana::$log = NULL;
 }
 public function setUp()
 {
     // @codingStandardsIgnoreEnd
     parent::setUp();
     $this->_initial_request = Request::$initial;
     Request::$initial = new Request('/');
 }
Пример #4
0
 public function setUp()
 {
     parent::setUp();
     $this->_original_timezone = date_default_timezone_get();
     $this->default_locale = setlocale(LC_ALL, 0);
     date_default_timezone_set('America/Chicago');
     setlocale(LC_ALL, 'en_US.utf8');
 }
Пример #5
0
 /**
  * Setup the enviroment for each test
  *
  * PHPUnit automatically backups up & restores global variables
  */
 public function setUp()
 {
     parent::setUp();
     $_SERVER['argv'] = array('index.php');
     foreach ($this->options as $option => $value) {
         if (is_string($option)) {
             $_SERVER['argv'][] = $option . '=' . $value;
         } else {
             $_SERVER['argv'][] = $value;
         }
     }
     $_SERVER['argc'] = count($_SERVER['argv']);
 }
Пример #6
0
 public function setUp()
 {
     parent::setUp();
     Kohana::$config->load('url')->set('trusted_hosts', array('www\\.kohanaframework\\.org'));
 }
Пример #7
0
 public function setUp()
 {
     parent::setUp();
     $this->default_locale = setlocale(LC_ALL, 0);
     setlocale(LC_ALL, 'en_US.utf8');
 }
Пример #8
0
 /**
  * Ensures we have a consistant timezone for testing.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_original_timezone = date_default_timezone_get();
     date_default_timezone_set('America/Chicago');
 }
Пример #9
0
 public function setUp()
 {
     $this->environmentDefault = array('asset-merger.merge' => TRUE, 'asset-merger.docroot' => $this->data_dir(), 'asset-merger.folder' => 'assets', 'asset-merger.load_paths.js' => $this->data_dir() . 'js' . DIRECTORY_SEPARATOR, 'asset-merger.load_paths.css' => $this->data_dir() . 'css' . DIRECTORY_SEPARATOR);
     parent::setUp();
 }
Пример #10
0
 /**
  * Remove all caches
  */
 public function setUp()
 {
     parent::setUp();
     $this->cleanCacheDir();
 }
 public function setUp()
 {
     parent::setUp();
     Kohana::$config->load('url')->set('trusted_hosts', array('kohanaframework\\.org'));
     $this->cleanCacheDir();
 }
Пример #12
0
 public function setUp()
 {
     parent::setUp();
     // $this->markTestSkipped("Message");
 }
Пример #13
0
 /**
  * Sets up the test enviroment
  */
 function setUp()
 {
     parent::setUp();
     Text::alternate();
 }
Пример #14
0
 public function setUp()
 {
     parent::setUp();
     Kohana::$config->load('url')->set('trusted_hosts', array('localhost'));
 }
Пример #15
0
 /**
  * Verify the dompdf state as a precondition on every test
  */
 public function setUp()
 {
     parent::setUp();
     $this->verify_dompdf_state();
 }
Пример #16
0
 public function setUp()
 {
     parent::setUp();
     Kohana::$config->load('url')->set('trusted_hosts', array('www\\.example\\.com'));
 }
 public function setUp()
 {
     parent::setUp();
     Kohana_CookieTest_TestableCookie::$_mock_cookies_set = array();
     $this->setEnvironment(array('Cookie::$salt' => 'some-random-salt', 'HTTP_USER_AGENT' => 'cli'));
 }
Пример #18
0
 public function setUp()
 {
     parent::setUp();
     Database::instance()->begin();
 }
Пример #19
0
 /**
  * Sets up the environment
  */
 public function setUp()
 {
     parent::setUp();
     Cookie::$salt = $this->_default_salt;
 }
Пример #20
0
 /**
  * SetUp test enviroment
  */
 public function setUp()
 {
     parent::setUp();
     setlocale(LC_ALL, 'en_US.utf8');
 }
Пример #21
0
 public function setUp()
 {
     parent::setUp();
     $this->repository = $this->getMockBuilder('Ushahidi_Repository_PostValue')->setMethods(['selectOne', 'selectQuery', 'getTable'])->disableOriginalConstructor()->getMock();
     $this->postvalue = $this->getMock('Ushahidi\\Core\\Entity\\PostValue');
 }
Пример #22
0
 public function setUp()
 {
     parent::setUp();
     $this->old_modules = Kohana::modules();
 }
Пример #23
0
 /**
  * SetUp test enviroment
  */
 public function setUp()
 {
     parent::setUp();
     setlocale(LC_ALL, 'English');
 }
Пример #24
0
 public function setUp()
 {
     parent::setUp();
     $this->_initial_request = Request::$initial;
     Request::$initial = new Request('/');
 }
Пример #25
0
 /**
  * Set up by resetting hooks.
  */
 public function setUp()
 {
     parent::setUp();
     Hooks::reset();
 }
Пример #26
0
 /**
  * Sets up a test route for caching
  *
  * @return void
  */
 public function setUp()
 {
     Route::set('welcome', 'welcome/index')->defaults(array('controller' => 'welcome', 'action' => 'index'));
     parent::setUp();
 }
Пример #27
0
 public function setUp()
 {
     parent::setUp();
 }