ArrayTest::testFlArrayKeyed PHP Method

testFlArrayKeyed() public method

Test for an array of float "@var float[]"
public testFlArrayKeyed ( )
    public function testFlArrayKeyed()
    {
        $jm = new JsonMapper();
        $sn = $jm->map(json_decode('{"flArray":{"foo":1.23,"bar":3.14,"baz":2.048}}'), new JsonMapperTest_Array());
        $this->assertInternalType('array', $sn->flArray);
        $this->assertEquals(3, count($sn->flArray));
        $this->assertTrue(is_float($sn->flArray['foo']));
        $this->assertTrue(is_float($sn->flArray['bar']));
        $this->assertTrue(is_float($sn->flArray['baz']));
    }