public function setUp()
 {
     parent::setUp();
     // Backup previous instance of eZSys (if any) and reset it
     $this->oldSysInstance = eZSys::instance();
     eZSys::setInstance();
     // Set the RequestURI to a known value so that eZSys::requestURI()
     // returns something known and useful.
     $this->queryString = "?foo=bar&this=that";
     eZSys::setServerVariable("REQUEST_URI", "/all/work/and/no/sleep/makes/(ole)/a/(dull)/boy{$this->queryString}");
     eZSys::init();
 }
Example #2
0
 public function tearDown()
 {
     eZSys::setServerVariable('HTTP_HOST', $this->httpHost);
     parent::tearDown();
 }
 /**
  * Test case setup
  * Prepare $_SERVER variable
  * 
  */
 public function setup()
 {
     parent::setup();
     eZSys::setServerVariable('HTTP_HOST', 'localhost');
 }