public function testSomeAnonymous()
{
$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->assertInstanceOf('Goetas\\Xsd\\XsdToPhp\\Php\\Structure\\PHPClass', $complexType1 = $classes['Example\\ComplexType1Type']);
$this->assertInstanceOf('Goetas\\Xsd\\XsdToPhp\\Php\\Structure\\PHPClass', $s2 = $classes['Example\\ComplexType1Type\\String2AType']);
$s1Prop = $complexType1->getProperty('string1');
$this->assertSame('Example\\ComplexType1Type\\String1AType', $s1Prop->getType()->getFullName());
$s2Prop = $complexType1->getProperty('string2');
$this->assertSame($s2, $s2Prop->getType());
$a1Prop = $complexType1->getProperty('att');
$this->assertSame('Example\\ComplexType1Type\\AttAType', $a1Prop->getType()->getFullName());
}