Goetas\Xsd\XsdToPhp\Tests\JmsSerializer\OTA\AnyTypePHPConversionTest::testSimpleAnyTypeYaml PHP Method

testSimpleAnyTypeYaml() public method

    public function testSimpleAnyTypeYaml()
    {
        $xml = '
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:complexType name="single">
                    <xs:all>
                        <xs:element name="id" type="xs:anyType"/>
                    </xs:all>
                </xs:complexType>
            </xs:schema>';
        $items = $this->getYamlFiles($xml, array(['http://www.w3.org/2001/XMLSchema', 'anyType', 'My\\Custom\\MixedTypeHandler']));
        $this->assertCount(1, $items);
        $single = $items['Example\\SingleType'];
        $this->assertEquals(array('Example\\SingleType' => array('properties' => array('id' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'id', 'accessor' => array('getter' => 'getId', 'setter' => 'setId'), 'type' => 'My\\Custom\\MixedTypeHandler')))), $single);
    }