public function testSomeInheritance()
{
$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:attribute name="attribute-2" type="xs:string"/>
<xs:sequence>
<xs:element name="complexType-1-el-1" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="complexType-2">
<xs:complexContent>
<xs:extension base="ex:complexType-1">
<xs:sequence>
<xs:element name="complexType-2-el1" type="xs:string"></xs:element>
</xs:sequence>
<xs:attribute name="complexType-2-att1" type="xs:string"></xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
';
$classes = $this->getClasses($content);
$this->assertCount(2, $classes);
$this->assertEquals(array('Example\\ComplexType1Type' => array('properties' => array('attribute2' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'attribute-2', 'accessor' => array('getter' => 'getAttribute2', 'setter' => 'setAttribute2'), 'xml_attribute' => true, 'type' => 'string'), 'complexType1El1' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'complexType-1-el-1', 'xml_element' => array('namespace' => 'http://www.example.com'), 'accessor' => array('getter' => 'getComplexType1El1', 'setter' => 'setComplexType1El1'), 'type' => 'string')))), $classes['Example\\ComplexType1Type']);
$this->assertEquals(array('Example\\ComplexType2Type' => array('properties' => array('complexType2Att1' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'complexType-2-att1', 'accessor' => array('getter' => 'getComplexType2Att1', 'setter' => 'setComplexType2Att1'), 'xml_attribute' => true, 'type' => 'string'), 'complexType2El1' => array('expose' => true, 'access_type' => 'public_method', 'serialized_name' => 'complexType-2-el1', 'xml_element' => array('namespace' => 'http://www.example.com'), 'accessor' => array('getter' => 'getComplexType2El1', 'setter' => 'setComplexType2El1'), 'type' => 'string')))), $classes['Example\\ComplexType2Type']);
}