Skip to content

Commit

Permalink
remove remind because we are working with a remote stream
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehrke committed Sep 15, 2016
1 parent ba67b47 commit 02c07c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion http/streamresponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public function __construct ($stream) {
* @param IOutput $output a small wrapper that handles output
*/
public function callback (IOutput $output) {
rewind($this->stream);
fpassthru($this->stream);
}

Expand Down
13 changes: 0 additions & 13 deletions tests/unit/http/streamresponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,4 @@ public function testCallback() {
$streamResponse = new StreamResponse($stream);
$streamResponse->callback($ioutput);
}

public function testCallbackRewind() {
$stream = fopen('data://text/plain,test_data', 'r');
fseek($stream, 5);
$this->expectOutputString('test_data');

$ioutput = $this->getMockBuilder('OCP\AppFramework\Http\IOutput')
->disableOriginalConstructor()
->getMock();

$streamResponse = new StreamResponse($stream);
$streamResponse->callback($ioutput);
}
}

0 comments on commit 02c07c9

Please sign in to comment.