public function testMapSimpleNullableInt() { $jm = new JsonMapper(); $sn = $jm->map(json_decode('{"pnullable":0}'), new JsonMapperTest_Simple()); $this->assertInternalType('integer', $sn->pnullable); $this->assertEquals(0, $sn->pnullable); }