public function testCanDumpPhpConfiguration()
 {
     $reference = new DummyConfigurationDefinition();
     $dumper = new PhpReferenceDumper();
     $dumped = $dumper->dump($reference);
     $matcher = $this->configuration . '/config.php';
     $this->assertEquals(file_get_contents($matcher), $dumped);
 }
 /**
  * @param BaseNode $node
  *
  * @return string
  */
 public function dumpNode(BaseNode $node)
 {
     $reference = parent::dumpNode($node);
     // Simply convert the PHP to JSON for simicity's sake
     $reference = str_replace('<?php', null, $reference);
     $reference = eval($reference);
     $reference = json_encode($reference, JSON_PRETTY_PRINT);
     return $reference . PHP_EOL;
 }