XmlFrameworkExtensionTest.php 753 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection;
  11. use Symfony\Component\Config\FileLocator;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
  14. class XmlFrameworkExtensionTest extends FrameworkExtensionTest
  15. {
  16. protected function loadFromFile(ContainerBuilder $container, $file)
  17. {
  18. $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/xml'));
  19. $loader->load($file.'.xml');
  20. }
  21. }