public function setUp() { parent::setUp(); $this->_SERVER = $_SERVER; // Mock out any microtime() calls. MockMicrotime::reset(); }
public function setUp() { parent::setUp(); $this->_SERVER = $_SERVER; $GLOBALS['fetch_calls'] = 0; $GLOBALS['store_calls'] = 0; }
public function setUp() { parent::setUp(); error_reporting(E_ALL); putenv('APPLICATION_ID=' . self::APPLICATION_ID); putenv('CURRENT_VERSION_ID=' . self::VERSION_ID); putenv('CURRENT_MODULE_ID=' . 'default'); // Default timezone must be set for DateTime date_default_timezone_set('UTC'); }
public function setUp() { parent::setUp(); $this->_SERVER = $_SERVER; // This is a a hacky workaround to the fact that you cannot use the header() // call in PHPUnit because you hit "headers already sent" errors. $this->sent_headers = []; $mock_send_header = function ($key, $value) { $this->sent_headers[$key] = $value; }; BlobstoreService::setSendHeaderFunction($mock_send_header); }
public function setUp() { parent::setUp(); $this->_SERVER = $_SERVER; self::$mock_upload_max_filesize = '0'; // This is a a hacky workaround to the fact that you cannot use the header() // call in PHPUnit because you hit "headers already sent" errors. $this->sent_headers = []; $mock_send_header = function ($key, $value) { $this->sent_headers[$key] = $value; }; CloudStorageTools::setSendHeaderFunction($mock_send_header); }
public function setUp() { parent::setUp(); $this->_SERVER = $_SERVER; }
public function setUp() { parent::setUp(); putenv('AUTH_DOMAIN=gmail.com'); }
public function setUp() { parent::setUp(); TestUtils::setStaticProperty('google\\appengine\\runtime\\CurlLite', 'logging_callback', [$this, 'mockLog']); }
public function setUp() { parent::setUp(); ini_set('sendmail_from', ''); putenv('APPLICATION_ID='); }
public function setUp() { parent::setUp(); }