public function testSimpleNoAttributesContent() { $xml = ' <xs:schema targetNamespace="http://www.example.com" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="single"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType> <xs:simpleType name="double"> <xs:restriction base="xs:string"/> </xs:simpleType> </xs:schema>'; $items = $this->getClasses($xml); $this->assertCount(1, $items); $codegen = $items['Example\\SingleType']; $this->assertTrue($codegen->hasMethod('value')); $this->assertTrue($codegen->hasMethod('__construct')); $this->assertTrue($codegen->hasMethod('__toString')); }