示例#1
0
 public function testFloat64LE()
 {
     $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+');
     $stream = new Stream($this->resource);
     $stream->writeFloat64LE(12.34);
     $stream->setPosition(0);
     $this->assertEquals(12.34, $stream->readFloat64LE(), '', 1.0E-5);
 }