diff --git a/tests/storage/adapter/local_test.php b/tests/storage/adapter/local_test.php index 1e1f33292e..6d3ba10bca 100644 --- a/tests/storage/adapter/local_test.php +++ b/tests/storage/adapter/local_test.php @@ -115,7 +115,7 @@ public function test_write_stream() { file_put_contents($this->path . 'file.txt', 'abc'); - $stream = fopen($this->path . 'file.txt', 'w+b'); + $stream = fopen($this->path . 'file.txt', 'rb'); $this->adapter->write_stream('file2.txt', $stream); fclose($stream); $this->assertEquals(file_get_contents($this->path . 'file2.txt'), 'abc');