XmlDriverTest.php 678 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the Symfony framework.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\Tests\Bridge\Doctrine\Mapping\Driver;
  11. use Symfony\Bridge\Doctrine\Mapping\Driver\XmlDriver;
  12. class XmlDriverTest extends AbstractDriverTest
  13. {
  14. protected function getFileExtension()
  15. {
  16. return '.orm.xml';
  17. }
  18. protected function getDriver(array $paths = array())
  19. {
  20. $driver = new XmlDriver(array_values($paths));
  21. $driver->setNamespacePrefixes(array_flip($paths));
  22. return $driver;
  23. }
  24. }