Ejemplo n.º 1
0
 /**
  * @dataProvider binaryReaders
  */
 public function testSignedReaderWithLittleEndian($brBig, $brLittle)
 {
     $brLittle->setPosition(12);
     $this->assertEquals(255, $this->int8->read($brLittle));
     $this->assertEquals(-1, $this->int8->readSigned($brLittle));
     $this->assertEquals(-1, $this->int8->readSigned($brLittle));
     $this->assertEquals(255, $this->int8->read($brLittle));
 }
Ejemplo n.º 2
0
 /**
  * @return int
  */
 public function readInt8()
 {
     return $this->int8Reader->readSigned($this);
 }