| @@ 26-32 (lines=7) @@ | ||
| 23 | * | |
| 24 | * @return StreamInterface | |
| 25 | */ | |
| 26 | protected function createStream($string) | |
| 27 |     { | |
| 28 |         $stream = fopen('php://memory', 'r+'); | |
| 29 | fwrite($stream, $string); | |
| 30 | rewind($stream); | |
| 31 | return new Stream($stream); | |
| 32 | } | |
| 33 | } | |
| 34 | ||
| @@ 50-56 (lines=7) @@ | ||
| 47 | * | |
| 48 | * @return StreamInterface | |
| 49 | */ | |
| 50 | protected function createStream($string) | |
| 51 |     { | |
| 52 |         $stream = fopen('php://memory', 'r+'); | |
| 53 | fwrite($stream, $string); | |
| 54 | rewind($stream); | |
| 55 | return new Stream($stream); | |
| 56 | } | |
| 57 | ||
| 58 | /** | |
| 59 | * @return array | |