|
@@ 11-22 (lines=12) @@
|
| 8 |
|
|
| 9 |
|
class CompareTest extends AbstractTest |
| 10 |
|
{ |
| 11 |
|
private function getXmlDefinitions($filename) |
| 12 |
|
{ |
| 13 |
|
$this->setUp(); |
| 14 |
|
$container = $this->container; |
| 15 |
|
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/Xml/')); |
| 16 |
|
$loader->load("$filename.xml"); |
| 17 |
|
|
| 18 |
|
$container->loadFromExtension('mathielen_import_engine'); |
| 19 |
|
$container->compile(); |
| 20 |
|
|
| 21 |
|
return $container->getDefinitions(); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
private function getYamlDefinitions($filename) |
| 25 |
|
{ |
|
@@ 24-35 (lines=12) @@
|
| 21 |
|
return $container->getDefinitions(); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
private function getYamlDefinitions($filename) |
| 25 |
|
{ |
| 26 |
|
$this->setUp(); |
| 27 |
|
$container = $this->container; |
| 28 |
|
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/Yaml/')); |
| 29 |
|
$loader->load("$filename.yml"); |
| 30 |
|
|
| 31 |
|
$container->loadFromExtension('mathielen_import_engine'); |
| 32 |
|
$container->compile(); |
| 33 |
|
|
| 34 |
|
return $container->getDefinitions(); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
public function testFullXmlAndYamlSame() |
| 38 |
|
{ |