phpunit.xml.dist 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 -c <filename> ...
  12. Example: phpunit -c mysqlconf.xml AllTests
  13. -->
  14. <phpunit backupGlobals="false"
  15. backupStaticAttributes="false"
  16. colors="true"
  17. convertErrorsToExceptions="true"
  18. convertNoticesToExceptions="true"
  19. convertWarningsToExceptions="true"
  20. processIsolation="false"
  21. stopOnFailure="false"
  22. syntaxCheck="false"
  23. bootstrap="./tests/Doctrine/Tests/TestInit.php"
  24. >
  25. <testsuites>
  26. <testsuite name="Doctrine ORM Test Suite">
  27. <directory>./tests/Doctrine/Tests/ORM</directory>
  28. </testsuite>
  29. </testsuites>
  30. <groups>
  31. <exclude>
  32. <group>performance</group>
  33. <group>locking_functional</group>
  34. </exclude>
  35. </groups>
  36. <php>
  37. <!-- "Real" test database -->
  38. <!-- uncomment, otherwise sqlite memory runs
  39. <var name="db_type" value="pdo_mysql"/>
  40. <var name="db_host" value="localhost" />
  41. <var name="db_username" value="root" />
  42. <var name="db_password" value="" />
  43. <var name="db_name" value="doctrine_tests" />
  44. <var name="db_port" value="3306"/>-->
  45. <!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
  46. <!-- Database for temporary connections (i.e. to drop/create the main database) -->
  47. <var name="tmpdb_type" value="pdo_mysql"/>
  48. <var name="tmpdb_host" value="localhost" />
  49. <var name="tmpdb_username" value="root" />
  50. <var name="tmpdb_password" value="" />
  51. <var name="tmpdb_name" value="doctrine_tests_tmp" />
  52. <var name="tmpdb_port" value="3306"/>
  53. </php>
  54. </phpunit>