/**
* @covers FOF30\Factory\Magic\DispatcherFactory::make
* @dataProvider getTestMake
*/
public function testMake($test, $check)
{
$msg = 'DispatcherFactory::make %s - Case: ' . $check['case'];
$config['componentName'] = $test['component'];
if ($test['backend_path']) {
$config['backEndPath'] = $test['backend_path'];
}
$container = new TestContainer($config);
// Required so we force FOF to read the fof.xml file
$dummy = $container->appConfig;
$factory = new DispatcherFactory($container);
$result = $factory->make(array());
$this->assertEquals($check['result'], get_class($result), sprintf($msg, 'Returned the wrong result'));
}