/** * Overrides the parent setup method. * * @return void * * @see PHPUnit_Framework_TestCase::setUp() */ protected function setUp() { $this->setExpectedError(); parent::setUp(); // Since we're creating the platform only when we instantiate the test class, any modification // will be carried over in the other tests, so we have to manually reset the platform before // running any other test $platform = static::$container->platform; if (method_exists($platform, 'reset')) { $platform->reset(); } }
protected function setUp() { parent::setUp(); $_SERVER['HTTP_HOST'] = 'www.example.com'; }