コード例 #1
0
 /**
  * @dataProvider getDataForTestWriteSubstringException
  * @expectedException \OutOfBoundsException
  * @expectedExceptionMessage Invalid offset or length.
  */
 public function testWriteSubstringException($sourceBytes, $offset, $length)
 {
     $input = new PipedInputStream();
     $output = new PipedOutputStream($input);
     $output->writeSubstring($sourceBytes, $offset, $length);
 }