1 <?xml version="1.0" encoding="utf-8"?>
3 Use this configuration file as a template to run the tests against any dbms.
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
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">-->
25 <!-- Database for temporary connections (i.e. to drop/create the main database) -->
26 <var name="tmpdb_type" value="pdo_mysql"/>
27 <var name="tmpdb_host" value="localhost" />
28 <var name="tmpdb_username" value="root" />
29 <var name="tmpdb_password" value="" />
30 <var name="tmpdb_name" value="doctrine_tests_tmp" />
31 <var name="tmpdb_port" value="3306"/>