public function testMulteplicity()
{
$xml = '
<xs:schema targetNamespace="http://www.example.com"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="single">
<xs:all>
<xs:element name="id" type="ary" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="ary">
<xs:all>
<xs:element name="id" type="xs:long" maxOccurs="2"/>
</xs:all>
</xs:complexType>
</xs:schema>';
$items = $this->getClasses($xml);
$this->assertCount(1, $items);
$codegen = $items['Example\\SingleType'];
$this->assertTrue($codegen->hasMethod('issetId'));
$this->assertTrue($codegen->hasMethod('unsetId'));
$this->assertTrue($codegen->hasMethod('getId'));
$this->assertTrue($codegen->hasMethod('setId'));
}