Beispiel #1
2
 /**
  * gets schema formatted content
  *
  * @return string
  */
 public function getContent()
 {
     $schemaDefinition = $this->schema->toArray();
     $content = \Dive\Util\VarExport::export($schemaDefinition, array('removeLastComma' => true));
     $content = "<?php\n\nreturn {$content};";
     return $content;
 }
Beispiel #2
0
 /**
  * @dataProvider provideExport
  *
  * @param string $var
  * @param array  $options
  * @param string $expected
  */
 public function testExport($var, $options, $expected)
 {
     $actual = \Dive\Util\VarExport::export($var, $options);
     $this->assertEquals($expected, $actual);
 }