summaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http/RequestStream.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/AppFramework/Http/RequestStream.php')
-rw-r--r--tests/lib/AppFramework/Http/RequestStream.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/AppFramework/Http/RequestStream.php b/tests/lib/AppFramework/Http/RequestStream.php
index 1dcfbce46d1..3868ed16505 100644
--- a/tests/lib/AppFramework/Http/RequestStream.php
+++ b/tests/lib/AppFramework/Http/RequestStream.php
@@ -10,7 +10,7 @@ class RequestStream {
protected $position;
protected $varname;
- function stream_open($path, $mode, $options, &$opened_path) {
+ public function stream_open($path, $mode, $options, &$opened_path) {
$url = parse_url($path);
$this->varname = $url["host"];
$this->position = 0;
@@ -18,13 +18,13 @@ class RequestStream {
return true;
}
- function stream_read($count) {
+ public function stream_read($count) {
$ret = substr($GLOBALS[$this->varname], $this->position, $count);
$this->position += strlen($ret);
return $ret;
}
- function stream_write($data) {
+ public function stream_write($data) {
$left = substr($GLOBALS[$this->varname], 0, $this->position);
$right = substr($GLOBALS[$this->varname], $this->position + strlen($data));
$GLOBALS[$this->varname] = $left . $data . $right;
@@ -32,15 +32,15 @@ class RequestStream {
return strlen($data);
}
- function stream_tell() {
+ public function stream_tell() {
return $this->position;
}
- function stream_eof() {
+ public function stream_eof() {
return $this->position >= strlen($GLOBALS[$this->varname]);
}
- function stream_seek($offset, $whence) {
+ public function stream_seek($offset, $whence) {
switch ($whence) {
case SEEK_SET:
if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
@@ -96,7 +96,7 @@ class RequestStream {
//return false;
}
- function stream_metadata($path, $option, $var) {
+ public function stream_metadata($path, $option, $var) {
if ($option == STREAM_META_TOUCH) {
$url = parse_url($path);
$varname = $url["host"];