read() публичный Метод

If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.
public read ( integer $length ) : string | boolean
$length integer
Результат string | boolean
 /**
  * @test
  * @expectedException \Swift_IoException
  */
 public function shouldThrowExceptionOnConsecutiveRead()
 {
     $fbs = new \Swift_ByteStream_FileByteStream('does not exist');
     try {
         $fbs->read(100);
     } catch (\Swift_IoException $exc) {
         $fbs->read(100);
     }
 }