ArrayTest::testStrArrayV2 PHP Method

testStrArrayV2() public method

Test for an array of strings - "@var array[string]"
public testStrArrayV2 ( )
    public function testStrArrayV2()
    {
        $jm = new JsonMapper();
        $sn = $jm->map(json_decode('{"strArrayV2":["str",false,2.048]}'), new JsonMapperTest_Array());
        $this->assertInternalType('array', $sn->strArrayV2);
        $this->assertEquals(3, count($sn->strArrayV2));
        $this->assertInternalType('string', $sn->strArrayV2[0]);
        $this->assertInternalType('string', $sn->strArrayV2[1]);
        $this->assertInternalType('string', $sn->strArrayV2[2]);
    }