Example #1
0
 public function testDumpParameters()
 {
     $container = new Container();
     $container->loadFromFile(__DIR__ . '/fixtures/parameters.yml');
     $expected = (include __DIR__ . '/fixtures/parameters.php');
     $this->assertEquals($expected, $container->dumpParameters());
 }
Example #2
0
 /**
  * @expectedException \MD\Foundation\Exceptions\InvalidFileException
  */
 public function testLoadingUnsupportedFile()
 {
     $container = new Container();
     $container->loadFromFile(__DIR__ . '/fixtures/parameters.ini');
 }