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('/'); }
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'); }
/** * 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']); }
public function setUp() { parent::setUp(); Kohana::$config->load('url')->set('trusted_hosts', array('www\\.kohanaframework\\.org')); }
public function setUp() { parent::setUp(); $this->default_locale = setlocale(LC_ALL, 0); setlocale(LC_ALL, 'en_US.utf8'); }
/** * 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'); }
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(); }
/** * 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(); }
public function setUp() { parent::setUp(); // $this->markTestSkipped("Message"); }
/** * Sets up the test enviroment */ function setUp() { parent::setUp(); Text::alternate(); }
public function setUp() { parent::setUp(); Kohana::$config->load('url')->set('trusted_hosts', array('localhost')); }
/** * Verify the dompdf state as a precondition on every test */ public function setUp() { parent::setUp(); $this->verify_dompdf_state(); }
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')); }
public function setUp() { parent::setUp(); Database::instance()->begin(); }
/** * Sets up the environment */ public function setUp() { parent::setUp(); Cookie::$salt = $this->_default_salt; }
/** * SetUp test enviroment */ public function setUp() { parent::setUp(); setlocale(LC_ALL, 'en_US.utf8'); }
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'); }
public function setUp() { parent::setUp(); $this->old_modules = Kohana::modules(); }
/** * SetUp test enviroment */ public function setUp() { parent::setUp(); setlocale(LC_ALL, 'English'); }
public function setUp() { parent::setUp(); $this->_initial_request = Request::$initial; Request::$initial = new Request('/'); }
/** * Set up by resetting hooks. */ public function setUp() { parent::setUp(); Hooks::reset(); }
/** * 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(); }
public function setUp() { parent::setUp(); }