/** * @dataProvider getDataForTestReadSubstringException * @expectedException \OutOfBoundsException * @expectedExceptionMessage Invalid offset or length. */ public function testReadSubstringException($source, $offset, $length) { $input = new PipedInputStream(); $input->readSubstring($source, $offset, $length); }