2008-02-10 22:08:31 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Use this configuration file as a template to run the tests against any dbms.
|
|
|
|
Procedure:
|
2013-03-11 04:08:58 +04:00
|
|
|
1) Save a copy of this file with a name of your choosing. It doesn't matter
|
2008-02-10 22:08:31 +03:00
|
|
|
where you place it as long as you know where it is.
|
|
|
|
i.e. "mysqlconf.xml" (It needs the ending .xml).
|
|
|
|
2) Edit the file and fill in your settings (database name, type, username, etc.)
|
|
|
|
Just change the "value"s, not the names of the var elements.
|
|
|
|
3) To run the tests against the database type the following from within the
|
|
|
|
tests/ folder: phpunit --configuration <filename> ...
|
|
|
|
Example: phpunit --configuration mysqlconf.xml AllTests
|
|
|
|
-->
|
|
|
|
<phpunit>
|
|
|
|
<php>
|
2009-05-30 17:57:57 +04:00
|
|
|
<!-- "Real" test database -->
|
2009-05-28 02:14:27 +04:00
|
|
|
<var name="db_type" value="pdo_mysql"/>
|
2008-02-10 22:08:31 +03:00
|
|
|
<var name="db_host" value="localhost" />
|
2009-05-28 02:14:27 +04:00
|
|
|
<var name="db_username" value="root" />
|
|
|
|
<var name="db_password" value="" />
|
|
|
|
<var name="db_name" value="doctrine_tests" />
|
2009-01-12 16:34:41 +03:00
|
|
|
<var name="db_port" value="3306"/>
|
2010-02-01 01:01:58 +03:00
|
|
|
<!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
|
2009-05-30 17:57:57 +04:00
|
|
|
|
|
|
|
<!-- Database for temporary connections (i.e. to drop/create the main database) -->
|
|
|
|
<var name="tmpdb_type" value="pdo_mysql"/>
|
|
|
|
<var name="tmpdb_host" value="localhost" />
|
|
|
|
<var name="tmpdb_username" value="root" />
|
|
|
|
<var name="tmpdb_password" value="" />
|
|
|
|
<var name="tmpdb_name" value="doctrine_tests_tmp" />
|
|
|
|
<var name="tmpdb_port" value="3306"/>
|
2008-02-10 22:08:31 +03:00
|
|
|
</php>
|
|
|
|
</phpunit>
|