
PHPUnit 2.3.6 by Sebastian Bergmann.


>Test toXML() method
<database>
   <table>
      <name>Person</name>
      <declaration>
         <field>
            <name>PersonID</name>
            <type>integer</type>
            <notnull>1</notnull>
            <autoincrement>1</autoincrement>
         </field>
         <field>
            <name>FirstName</name>
            <type>char</type>
            <length>32</length>
            <notnull>1</notnull>
         </field>
         <field>
            <name>MiddleName</name>
            <type>char</type>
            <length>32</length>
         </field>
         <field>
            <name>LastName</name>
            <type>char</type>
            <length>64</length>
            <notnull>1</notnull>
         </field>
         <field>
            <name>NameSuffix</name>
            <type>char</type>
            <length>16</length>
         </field>
         <index>
            <name>PersonID</name>
            <primary>1</primary>
            <field>PersonID</field>
         </index>
         <index>
            <name>Name</name>
            <field>LastName</field>
            <field>FirstName</field>
            <field>MiddleName</field>
            <field>NameSuffix</field>
         </index>
      </declaration>
   </table>
   <table>
      <name>Address</name>
      <declaration>
         <field>
            <name>AddressID</name>
            <type>integer</type>
            <notnull>1</notnull>
            <autoincrement>1</autoincrement>
         </field>
         <field>
            <name>Building</name>
            <type>char</type>
            <length>16</length>
         </field>
         <field>
            <name>Street</name>
            <type>char</type>
            <length>64</length>
         </field>
         <field>
            <name>UnitType</name>
            <type>char</type>
            <length>16</length>
         </field>
         <field>
            <name>Unit</name>
            <type>char</type>
            <length>16</length>
         </field>
         <field>
            <name>City</name>
            <type>char</type>
            <length>64</length>
         </field>
         <field>
            <name>StateAbb</name>
            <type>char</type>
            <length>2</length>
         </field>
         <field>
            <name>ZipCode</name>
            <type>char</type>
            <length>16</length>
         </field>
         <index>
            <name>AddressID</name>
            <primary>1</primary>
            <field>AddressID</field>
         </index>
         <index>
            <name>StreetAddress</name>
            <unique>1</unique>
            <field>City</field>
            <field>Street</field>
            <field>Building</field>
            <field>Unit</field>
         </index>
         <foreign>
            <field>Street</field>
            <field>City</field>
            <field>StateAbb</field>
            <references>
               <table>Street</table>
               <field>Street</field>
               <field>City</field>
               <field>StateAbb</field>
            </references>
            <ondelete>cascade</ondelete>
            <onupdate>cascade</onupdate>
         </foreign>
      </declaration>
   </table>
   <table>
      <name>Phone</name>
      <declaration>
         <field>
            <name>PhoneID</name>
            <type>integer</type>
            <notnull>1</notnull>
            <autoincrement>1</autoincrement>
         </field>
         <field>
            <name>PhoneNumber</name>
            <type>char</type>
            <length>16</length>
            <notnull>1</notnull>
         </field>
         <index>
            <name>PhoneID</name>
            <primary>1</primary>
            <field>PhoneID</field>
         </index>
         <index>
            <name>PhoneNumber</name>
            <unique>1</unique>
            <field>PhoneNumber</field>
         </index>
      </declaration>
   </table>
   <table>
      <name>PersonAddress</name>
      <declaration>
         <field>
            <name>PersonID2</name>
            <type>integer</type>
         </field>
         <field>
            <name>AddressID</name>
            <type>integer</type>
            <notnull>1</notnull>
         </field>
         <index>
            <name>PersonID2</name>
            <field>PersonID2</field>
         </index>
         <index>
            <name>AddressID</name>
            <field>AddressID</field>
         </index>
         <foreign>
            <field>PersonID2</field>
            <references>
               <table>Person</table>
               <field>PersonID</field>
            </references>
            <ondelete>cascade</ondelete>
            <onupdate>cascade</onupdate>
         </foreign>
         <foreign>
            <field>AddressID</field>
            <references>
               <table>Address</table>
               <field>AddressID</field>
            </references>
            <ondelete>cascade</ondelete>
            <onupdate>cascade</onupdate>
         </foreign>
      </declaration>
   </table>
   <table>
      <name>PersonPhone</name>
      <declaration>
         <field>
            <name>PersonID</name>
            <type>integer</type>
         </field>
         <field>
            <name>PhoneID</name>
            <type>integer</type>
            <notnull>1</notnull>
         </field>
         <index>
            <name>PersonID</name>
            <field>PersonID</field>
         </index>
         <index>
            <name>PhoneID</name>
            <field>PhoneID</field>
         </index>
         <foreign>
            <field>PersonID</field>
            <references>
               <table>Person</table>
               <field>PersonID</field>
            </references>
            <ondelete>cascade</ondelete>
            <onupdate>cascade</onupdate>
         </foreign>
         <foreign>
            <field>PhoneID</field>
            <references>
               <table>Phone</table>
               <field>PhoneID</field>
            </references>
            <ondelete>cascade</ondelete>
            <onupdate>cascade</onupdate>
         </foreign>
      </declaration>
   </table>
   <table>
      <name>Street</name>
      <declaration>
         <field>
            <name>Street</name>
            <type>char</type>
            <length>64</length>
         </field>
         <field>
            <name>City</name>
            <type>char</type>
            <length>64</length>
         </field>
         <field>
            <name>StateAbb</name>
            <type>char</type>
            <length>2</length>
         </field>
         <field>
            <name>Sunny</name>
            <type>boolean</type>
         </field>
         <index>
            <name>Street</name>
            <primary>1</primary>
            <field>Street</field>
            <field>City</field>
            <field>StateAbb</field>
         </index>
      </declaration>
   </table>
</database>.
>Test round-trip toXML() -> fromXML.

Time: 0.37030982971191

OK (2 tests)
