public function testFloat32() { $this->resource = fopen(tempnam(sys_get_temp_dir(), 'binary'), 'a+'); $stream = new Stream($this->resource); $stream->writeFloat32(12.34); $stream->setPosition(0); $this->assertEquals(12.34, $stream->readFloat32(), '', 1.0E-5); }