File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,14 @@ public function __toString(){
8282
8383 return (string )stream_get_contents ($ this ->stream );
8484 }
85+ // @codeCoverageIgnoreStart
8586 catch (Exception $ e ){
8687 // https://bugs.php.net/bug.php?id=53648
8788 trigger_error ('Stream::__toString exception: ' .$ e ->getMessage (), E_USER_ERROR );
8889
8990 return '' ;
9091 }
92+ // @codeCoverageIgnoreEnd
9193
9294 }
9395
@@ -155,7 +157,7 @@ public function tell():int{
155157 $ result = ftell ($ this ->stream );
156158
157159 if ($ result === false ){
158- throw new RuntimeException ('Unable to determine stream position ' );
160+ throw new RuntimeException ('Unable to determine stream position ' ); // @codeCoverageIgnore
159161 }
160162
161163 return $ result ;
@@ -217,7 +219,7 @@ public function write($string):int{
217219 $ result = fwrite ($ this ->stream , $ string );
218220
219221 if ($ result === false ){
220- throw new RuntimeException ('Unable to write to stream ' );
222+ throw new RuntimeException ('Unable to write to stream ' ); // @codeCoverageIgnore
221223 }
222224
223225 return $ result ;
@@ -262,7 +264,7 @@ public function getContents():string{
262264 $ contents = stream_get_contents ($ this ->stream );
263265
264266 if ($ contents === false ){
265- throw new RuntimeException ('Unable to read stream contents ' );
267+ throw new RuntimeException ('Unable to read stream contents ' ); // @codeCoverageIgnore
266268 }
267269
268270 return $ contents ;
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ private function copyToStream(StreamInterface $dest){
215215 while (!$ source ->eof ()){
216216
217217 if (!$ dest ->write ($ source ->read (1048576 ))){
218- break ;
218+ break ; // @codeCoverageIgnore
219219 }
220220
221221 }
You can’t perform that action at this time.
0 commit comments