summaryrefslogtreecommitdiffstats
path: root/tests/lib/templatelayout.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/templatelayout.php')
-rw-r--r--tests/lib/templatelayout.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/lib/templatelayout.php b/tests/lib/templatelayout.php
index 0335c7c88ee..1035dae122d 100644
--- a/tests/lib/templatelayout.php
+++ b/tests/lib/templatelayout.php
@@ -11,23 +11,27 @@ namespace OC\Test;
/**
* @package OC\Test
*/
-class OC_TemplateLayout extends \PHPUnit_Framework_TestCase {
+class OC_TemplateLayout extends \Test\TestCase {
- private $oldServerUri;
+ private $oldServerURI;
private $oldScriptName;
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
$this->oldServerURI = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : null;
$this->oldScriptName = $_SERVER['SCRIPT_NAME'];
}
- public function tearDown() {
+ protected function tearDown() {
if ($this->oldServerURI === null) {
unset($_SERVER['REQUEST_URI']);
} else {
$_SERVER['REQUEST_URI'] = $this->oldServerURI;
}
$_SERVER['SCRIPT_NAME'] = $this->oldScriptName;
+
+ parent::tearDown();
}
/**