Beispiel #1
0
 /**
  * Creates a string representation of this Schema.
  * The representation is given in xml format.
  *
  * @return string Representation in xml format
  */
 public function toString()
 {
     $dumper = new XmlDumper();
     return $dumper->dumpSchema($this);
 }
 public function testDumpSchema()
 {
     $schema = (include realpath(__DIR__ . '/../../../Resources/blog-schema.php'));
     $this->assertSame($this->getExpectedXml('blog-schema.xml'), $this->dumper->dumpSchema($schema, true));
 }