dispatcher() публичный Метод

public dispatcher ( array $config = [] )
$config array
Пример #1
0
 /**
  * @group           MagicFactory
  * @covers          FOF30\Factory\MagicFactory::dispatcher
  * @dataProvider    MagicFactoryDataprovider::getTestDispatcher
  */
 public function testDispatcher($test, $check)
 {
     $msg = 'MagicFactory::dispatcher %s - Case: ' . $check['case'];
     $container = new TestContainer(array('backEndPath' => JPATH_TESTS . '/Stubs/Fakeapp/Admin'));
     $platform = $container->platform;
     $platform::$isAdmin = $test['backend'];
     // Required so we force FOF to read the fof.xml file
     $dummy = $container->appConfig;
     $factory = new MagicFactory($container);
     $result = $factory->dispatcher();
     $this->assertEquals($check['result'], get_class($result), sprintf($msg, 'Returned the wrong result'));
 }