/**
  * @param string $file
  * @param string $content
  * @dataProvider provider
  */
 public function testGenerateFactory($file, $content)
 {
     if (strtolower(substr(php_uname(), 0, 7)) == 'windows') {
         $this->markTestSkipped('Skipped since doesnt work on windows.');
     }
     FactoryDependencyInjectionContainer::$prefix = '';
     $config = new Configuration(null, '');
     $config->setClassConfig('rg\\injektor\\generators\\FGTestClassOne', array('singleton' => true));
     $config->setClassConfig('rg\\injektor\\generators\\FGTestClassFour', array('singleton' => true));
     $config->setClassConfig('rg\\injektor\\generators\\FGTestClassThree', array('params' => array('foo' => array('value' => 'foo'), 'four' => array('class' => 'rg\\injektor\\generators\\FGTestClassFour'))));
     $factoryGenerator = new TestingFactoryGenerator($config, '');
     $factoryGenerator->processFileForClass('rg\\injektor\\generators\\FGTestClassOne');
     $this->assertEquals($content, $factoryGenerator->files[$file]);
 }
 public function tearDown()
 {
     FactoryDependencyInjectionContainer::$prefix = '';
 }