public function tearDown()
 {
     $_SERVER = $this->_SERVER;
     // Reset environmental variables.
     putenv("SERVER_SOFTWARE=");
     putenv("HTTP_HOST=");
     parent::tearDown();
 }
Example #2
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');
 }
Example #3
0
 public function tearDown()
 {
     $_SERVER = $this->_SERVER;
     parent::tearDown();
 }
 public function tearDown()
 {
     putenv('AUTH_DOMAIN');
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     TestUtils::setStaticProperty('google\\appengine\\runtime\\CurlLite', 'logging_callback', [$this, 'mockLog']);
 }
Example #6
0
 public function setUp()
 {
     parent::setUp();
     ini_set('sendmail_from', '');
     putenv('APPLICATION_ID=');
 }
 public function tearDown()
 {
     $_SERVER = $this->_SERVER;
     // Reset environmental variables.
     putenv("SERVER_SOFTWARE=");
     putenv("HTTP_HOST=");
     // Verify that there's no expected calls remaining.
     $this->assertEquals([], $GLOBALS['expected_apc_fetch_calls']);
     $this->assertEquals([], $GLOBALS['expected_apc_store_calls']);
     parent::tearDown();
 }