aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/stream/staticstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/files/stream/staticstream.php')
-rw-r--r--tests/lib/files/stream/staticstream.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/lib/files/stream/staticstream.php b/tests/lib/files/stream/staticstream.php
index d55086196a0..416a4670efd 100644
--- a/tests/lib/files/stream/staticstream.php
+++ b/tests/lib/files/stream/staticstream.php
@@ -8,18 +8,20 @@
namespace Test\Files\Stream;
-class StaticStream extends \PHPUnit_Framework_TestCase {
+class StaticStream extends \Test\TestCase {
private $sourceFile;
private $sourceText;
- public function __construct() {
+ protected function setUp() {
+ parent::setUp();
$this->sourceFile = \OC::$SERVERROOT . '/tests/data/lorem.txt';
$this->sourceText = file_get_contents($this->sourceFile);
}
- public function tearDown() {
+ protected function tearDown() {
\OC\Files\Stream\StaticStream::clear();
+ parent::tearDown();
}
public function testContent() {