public function testSomeAnonymous()
{
error_reporting(error_reporting() & ~E_NOTICE);
$content = '
<xs:schema targetNamespace="http://www.example.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ex="http://www.example.com">
<xs:complexType name="complexType-1">
<xs:sequence>
<xs:element name="string1">
<xs:simpleType>
<xs:restriction base="xs:string"></xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="string2">
<xs:complexType>
<xs:sequence>
<xs:element name="string3" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="att">
<xs:simpleType>
<xs:restriction base="xs:string"></xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:schema>
';
$classes = $this->getClasses($content);
$this->assertCount(2, $classes);
$this->assertEquals(array('Example\\ComplexType1Type' => array('properties' => array('att' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'att', 'accessor' => array('getter' => 'getAtt', 'setter' => 'setAtt'), 'xml_attribute' => true, 'type' => 'string'), 'string1' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'string1', 'xml_element' => array('namespace' => 'http://www.example.com'), 'accessor' => array('getter' => 'getString1', 'setter' => 'setString1'), 'type' => 'string'), 'string2' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'string2', 'xml_element' => array('namespace' => 'http://www.example.com'), 'accessor' => array('getter' => 'getString2', 'setter' => 'setString2'), 'type' => 'Example\\ComplexType1Type\\String2AType')))), $classes['Example\\ComplexType1Type']);
$this->assertEquals(array('Example\\ComplexType1Type\\String2AType' => array('properties' => array('string3' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'string3', 'xml_element' => array('namespace' => 'http://www.example.com'), 'accessor' => array('getter' => 'getString3', 'setter' => 'setString3'), 'type' => 'string')))), $classes['Example\\ComplexType1Type\\String2AType']);
}