/** * @dataProvider binaryReaders */ public function testAlignedStringIsRead($brBig, $brLittle) { $brBig->setPosition(6); $brLittle->setPosition(6); $brBig->readBits(1); $brLittle->readBits(1); $this->assertEquals('test!', $this->string->readAligned($brBig, 5)); $this->assertEquals('test!', $this->string->readAligned($brLittle, 5)); }
/** * @param int $length * @return string */ public function readAlignedString($length) { return $this->stringReader->readAligned($this, $length); }