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