Exemple #1
0
 public function testFloat32LE()
 {
     $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+');
     $stream = new Stream($this->resource);
     $stream->writeFloat32LE(12.34);
     $stream->setPosition(0);
     $this->assertEquals(12.34, $stream->readFloat32LE(), '', 1.0E-5);
 }