SimpleTest::testMapSimpleNullableInt PHP Метод

testMapSimpleNullableInt() публичный Метод

Test for "@var int|null" with int value
    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);
    }