Skip to content

Commit

Permalink
refactor stream_read() in MockPHPStream class
Browse files Browse the repository at this point in the history
  • Loading branch information
dshovchko committed Nov 22, 2017
1 parent 8daeeed commit dc75a79
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/MockPHPStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ function stream_flush()

function stream_read($count)
{
if (is_null($this->length) === TRUE)
{
$this->length = strlen($this->data);
}
$length = min($count, $this->length - $this->index);
$data = substr($this->data, $this->index);
$this->index = $this->index + $length;
Expand Down

0 comments on commit dc75a79

Please sign in to comment.