public function testMapSimpleFloat() { $jm = new JsonMapper(); $sn = $jm->map(json_decode('{"fl":"1.2"}'), new JsonMapperTest_Simple()); $this->assertInternalType('float', $sn->fl); $this->assertEquals(1.2, $sn->fl); }