示例#1
0
 public function testUInt32OutsideBuffer()
 {
     $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+');
     $stream = new Stream($this->resource);
     $stream->writeUInt32(2147483648);
     $stream->setPosition(0);
     $this->assertEquals(-2147483648, $stream->readUInt32());
 }