Наследование: extends XsdNodeGenerator
 public function testNotEmpty()
 {
     $this->if($xsd_generator = new XsdGenerator())->and($object = new testedClass($xsd_generator))->and($writer = new \XMLWriter())->and($writer->openMemory())->then->variable($object->build('test', array('_not_empty' => true), $writer, false))->isNull()->string($writer->outputMemory())->isEqualTo('<xsd:element name="test" minOccurs="0"><xsd:simpleType><xsd:restriction base="xsd:decimal">' . '<xsd:pattern value="^[^0]*$"/></xsd:restriction></xsd:simpleType></xsd:element>');
 }