X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FUtil%2FHTTPInputDataDouble.php;h=5a3a4e4b468cfecdc3ae9339218f2183bcbaac28;hb=1301a53f20a5164d484a3a83368d4eb9174523ae;hp=391b9c82bb2d4f45842523d97c12fb21342e5489;hpb=6ef9ccbb977dbf36eab2c3c2083c22314ed3fce7;p=friendica.git diff --git a/tests/Util/HTTPInputDataDouble.php b/tests/Util/HTTPInputDataDouble.php index 391b9c82bb..5a3a4e4b46 100644 --- a/tests/Util/HTTPInputDataDouble.php +++ b/tests/Util/HTTPInputDataDouble.php @@ -1,6 +1,6 @@ injectedStream = $stream; } /** @@ -51,9 +49,9 @@ class HTTPInputDataDouble extends HTTPInputData * * @param false|string $content */ - public static function setPhpInputContent($content) + public function setPhpInputContent($content) { - self::$injectedContent = $content; + $this->injectedContent = $content; } /** @@ -61,30 +59,24 @@ class HTTPInputDataDouble extends HTTPInputData * * @param false|string $contentType */ - public static function setPhpInputContentType($contentType) - { - self::$injectedContentType = $contentType; - } - - /** {@inheritDoc} */ - protected static function getPhpInputStream() + public function setPhpInputContentType($contentType) { - return static::$injectedStream; + $this->injectedContentType = $contentType; } /** {@inheritDoc} */ - protected static function getPhpInputContent() + protected function getPhpInputStream() { - return static::$injectedContent; + return $this->injectedStream; } /** {@inheritDoc} */ - protected static function getContentType() + protected function getPhpInputContent() { - return static::$injectedContentType; + return $this->injectedContent; } - protected static function fetchFileData($stream, string $boundary, array $headers, string $filename) + protected function fetchFileData($stream, string $boundary, array $headers, string $filename) { $data = parent::fetchFileData($stream, $boundary, $headers, $filename); if (!empty($data['tmp_name'])) {