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