dbproperties.xml.dev 1.5KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Use this configuration file as a template to run the tests against any dbms.
  4. Procedure:
  5. 1) Save a copy of this file with a name of your chosing. It doesn't matter
  6. where you place it as long as you know where it is.
  7. i.e. "mysqlconf.xml" (It needs the ending .xml).
  8. 2) Edit the file and fill in your settings (database name, type, username, etc.)
  9. Just change the "value"s, not the names of the var elements.
  10. 3) To run the tests against the database type the following from within the
  11. tests/ folder: phpunit --configuration <filename> ...
  12. Example: phpunit --configuration mysqlconf.xml AllTests
  13. -->
  14. <phpunit>
  15. <php>
  16. <!-- "Real" test database -->
  17. <var name="db_type" value="pdo_mysql"/>
  18. <var name="db_host" value="localhost" />
  19. <var name="db_username" value="root" />
  20. <var name="db_password" value="" />
  21. <var name="db_name" value="doctrine_tests" />
  22. <var name="db_port" value="3306"/>
  23. <!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
  24. <!-- Database for temporary connections (i.e. to drop/create the main database) -->
  25. <var name="tmpdb_type" value="pdo_mysql"/>
  26. <var name="tmpdb_host" value="localhost" />
  27. <var name="tmpdb_username" value="root" />
  28. <var name="tmpdb_password" value="" />
  29. <var name="tmpdb_name" value="doctrine_tests_tmp" />
  30. <var name="tmpdb_port" value="3306"/>
  31. </php>
  32. </phpunit>