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