summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/SimpleFS/SimpleFileTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/SimpleFS/SimpleFileTest.php')
-rw-r--r--tests/lib/Files/SimpleFS/SimpleFileTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lib/Files/SimpleFS/SimpleFileTest.php b/tests/lib/Files/SimpleFS/SimpleFileTest.php
index ab4970804a4..c1c53b15ecf 100644
--- a/tests/lib/Files/SimpleFS/SimpleFileTest.php
+++ b/tests/lib/Files/SimpleFS/SimpleFileTest.php
@@ -123,4 +123,20 @@ class SimpleFileTest extends \Test\TestCase {
$this->simpleFile->getContent();
}
+
+ public function testRead() {
+ $this->file->expects($this->once())
+ ->method('fopen')
+ ->with('r');
+
+ $this->simpleFile->read();
+ }
+
+ public function testWrite() {
+ $this->file->expects($this->once())
+ ->method('fopen')
+ ->with('w');
+
+ $this->simpleFile->write();
+ }
}