summaryrefslogtreecommitdiffstats
path: root/tests/lib/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/config.php')
-rw-r--r--tests/lib/config.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/config.php b/tests/lib/config.php
index 180f6b1649b..9dff3aab84f 100644
--- a/tests/lib/config.php
+++ b/tests/lib/config.php
@@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
-class Test_Config extends PHPUnit_Framework_TestCase {
+class Test_Config extends \Test\TestCase {
const TESTCONTENT = '<?php $CONFIG=array("foo"=>"bar", "beers" => array("Appenzeller", "Guinness", "Kölsch"), "alcohol_free" => false);';
/** @var array */
@@ -18,15 +18,18 @@ class Test_Config extends PHPUnit_Framework_TestCase {
/** @var string */
private $randomTmpDir;
- function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
$this->randomTmpDir = \OC_Helper::tmpFolder();
$this->configFile = $this->randomTmpDir.'testconfig.php';
file_put_contents($this->configFile, self::TESTCONTENT);
$this->config = new OC\Config($this->randomTmpDir, 'testconfig.php');
}
- public function tearDown() {
+ protected function tearDown() {
unlink($this->configFile);
+ parent::tearDown();
}
public function testGetKeys() {