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