コード例 #1
0
 /**
  * @param  int    $length
  * @return string
  */
 public function readString($length)
 {
     return $this->stringReader->read($this, $length);
 }
コード例 #2
0
 /**
  * @expectedException \PhpBinaryReader\Exception\InvalidDataException
  * @dataProvider binaryReaders
  */
 public function testExceptionIsThrownIfLengthIsInvalidLittleEndian($brBig, $brLittle)
 {
     $this->string->read($brBig, 'foo');
 }